﻿using INTEX.DataBase.Tools;
using System.Data;
using System.Text;
using System.Data.OracleClient;
namespace WPFExcelReport
{
    public partial class VVKPOS
    {
        public void SetUpNewRow(ref DataRow dwReturn)
        {

            switch (app.company)
            {
                case "YGR":
                case "TST":
                default:
                    #region=========
                    dwReturn["VKPMANDANT"] = "XX";
                    dwReturn["VKPSA"] = "  ";
                    dwReturn["VKPAUFKRS"] = "  ";
                    dwReturn["VKPAUFLFD"] = "      ";
                    dwReturn["VKPAUFPOS"] = "   ";
                    dwReturn["VKPAENDST"] = "00000000";
                    dwReturn["VKPAENDZL"] = "0";
                    dwReturn["VKPAENDBEN"] = "        ";
                    dwReturn["VKPAENDDAT"] = "0";
                    dwReturn["VKPNEUBEN"] = "        ";
                    dwReturn["VKPNEUDAT"] = "0";
                    dwReturn["VKPPAENDDAT"] = "0";
                    dwReturn["VKPPAENPROG"] = "        ";
                    dwReturn["VKPAESTAT"] = "S";
                    dwReturn["VKPVB"] = "   ";
                    dwReturn["VKPVG"] = "   ";
                    dwReturn["VKPKUNDNR"] = "00000010";
                    dwReturn["VKPAUFART"] = "NA";
                    dwReturn["VKPSACHBE"] = "        ";
                    dwReturn["VKPPOSTYP"] = "   ";
                    dwReturn["VKPABWERT"] = "0";
                    dwReturn["VKPMUSTER"] = " ";
                    dwReturn["VKPABVK"] = " ";
                    dwReturn["VKPEIL"] = " ";
                    dwReturn["VKPEZEIT"] = "0";
                    dwReturn["VKPERL"] = " ";
                    dwReturn["VKPERLDAT"] = "0";
                    dwReturn["VKPERLBEN"] = "        ";
                    dwReturn["VKPPRODST"] = " ";
                    dwReturn["VKPARTST"] = " ";
                    dwReturn["VKPKOLL"] = "     ";
                    dwReturn["VKPART"] = "                        ";
                    dwReturn["VKPFARBE"] = "          ";
                    dwReturn["VKPGROE"] = "       ";
                    dwReturn["VKPZENSUR"] = "1";
                    dwReturn["VKPAUFMART"] = "  ";
                    dwReturn["VKPVERPART"] = "1  ";
                    dwReturn["VKPKURZBEZ"] = "          ";
                    dwReturn["VKPKKOLL"] = "     ";
                    dwReturn["VKPKDARTNR"] = "                        ";
                    dwReturn["VKPKDBEZ"] = "                              ";
                    dwReturn["VKPKDFARBNR"] = "          ";
                    dwReturn["VKPPRGR"] = "   ";
                    dwReturn["VKPARTGRP"] = "   ";
                    dwReturn["VKPDSACHB"] = "        ";
                    dwReturn["VKPZIELGR"] = "    ";
                    dwReturn["VKPMENGE1"] = "0";
                    dwReturn["VKPMENGE2"] = "0";
                    dwReturn["VKPRESERV"] = "0";
                    dwReturn["VKPZUGET"] = "0";
                    dwReturn["VKPFREIGE"] = "0";
                    dwReturn["VKPGAUFBEST"] = "0";
                    dwReturn["VKPKOMMISS"] = "0";
                    dwReturn["VKPFAKT"] = "0";
                    dwReturn["VKPVERS"] = "0";
                    dwReturn["VKPEINGET"] = "0";
                    dwReturn["VKPOFFEN"] = "0";
                    dwReturn["VKPMEEH"] = "   ";
                    dwReturn["VKPMEEHGRP"] = "1";
                    dwReturn["VKPMEEHFKT"] = "000001000000";
                    dwReturn["VKPMENGE1T1"] = "0";
                    dwReturn["VKPMENGE1T2"] = "0";
                    dwReturn["VKPMENGE1T3"] = "0";
                    dwReturn["VKPMENGE1T4"] = "1000";
                    dwReturn["VKPRESERVT1"] = "0";
                    dwReturn["VKPRESERVT2"] = "0";
                    dwReturn["VKPRESERVT3"] = "0";
                    dwReturn["VKPRESERVT4"] = "0";
                    dwReturn["VKPZUGETT1"] = "0";
                    dwReturn["VKPZUGETT2"] = "0";
                    dwReturn["VKPZUGETT3"] = "0";
                    dwReturn["VKPZUGETT4"] = "0";
                    dwReturn["VKPFREIGET1"] = "0";
                    dwReturn["VKPFREIGET2"] = "0";
                    dwReturn["VKPFREIGET3"] = "0";
                    dwReturn["VKPFREIGET4"] = "0";
                    dwReturn["VKPGAUFBESTT1"] = "0";
                    dwReturn["VKPGAUFBESTT2"] = "0";
                    dwReturn["VKPGAUFBESTT3"] = "0";
                    dwReturn["VKPGAUFBESTT4"] = "0";
                    dwReturn["VKPKOMMIST1"] = "0";
                    dwReturn["VKPKOMMIST2"] = "0";
                    dwReturn["VKPKOMMIST3"] = "0";
                    dwReturn["VKPKOMMIST4"] = "0";
                    dwReturn["VKPFAKTT1"] = "0";
                    dwReturn["VKPFAKTT2"] = "0";
                    dwReturn["VKPFAKTT3"] = "0";
                    dwReturn["VKPFAKTT4"] = "0";
                    dwReturn["VKPVERST1"] = "0";
                    dwReturn["VKPVERST2"] = "0";
                    dwReturn["VKPVERST3"] = "0";
                    dwReturn["VKPVERST4"] = "0";
                    dwReturn["VKPEINTT1"] = "0";
                    dwReturn["VKPEINTT2"] = "0";
                    dwReturn["VKPEINTT3"] = "0";
                    dwReturn["VKPEINTT4"] = "0";
                    dwReturn["VKPOFFENT1"] = "0";
                    dwReturn["VKPOFFENT2"] = "0";
                    dwReturn["VKPOFFENT3"] = "0";
                    dwReturn["VKPOFFENT4"] = "0";
                    dwReturn["VKPWVTERM"] = "0";
                    dwReturn["VKPWUTERM"] = "0";
                    dwReturn["VKPFREITERM"] = "0";
                    dwReturn["VKPVERSTERM"] = "0";
                    dwReturn["VKPLIEFTERM"] = "0";
                    dwReturn["VKPLIEFEING"] = "        ";
                    dwReturn["VKPEINTTERM"] = "0";
                    dwReturn["VKPEINTEING"] = "        ";
                    dwReturn["VKPVERZEING1"] = "        ";
                    dwReturn["VKPVERZTERM1"] = "0";
                    dwReturn["VKPBESTTERM1"] = "0";
                    dwReturn["VKPVERZEING2"] = "        ";
                    dwReturn["VKPVERZTERM2"] = "0";
                    dwReturn["VKPBESTTERM2"] = "0";
                    dwReturn["VKPVERZEING3"] = "        ";
                    dwReturn["VKPVERZTERM3"] = "0";
                    dwReturn["VKPBESTTERM3"] = "0";
                    dwReturn["VKPVERZEING4"] = "        ";
                    dwReturn["VKPVERZTERM4"] = "0";
                    dwReturn["VKPBESTTERM4"] = "0";
                    dwReturn["VKPVERZEING5"] = "        ";
                    dwReturn["VKPVERZTERM5"] = "0";
                    dwReturn["VKPBESTTERM5"] = "0";
                    dwReturn["VKPLVDAT"] = "0";
                    dwReturn["VKPEINTVON"] = "0";
                    dwReturn["VKPVALUTA"] = "0";
                    dwReturn["VKPVALDAT"] = "0";
                    dwReturn["VKPLIEFZEIT"] = "                                        ";
                    dwReturn["VKPLZEIT"] = "0";
                    dwReturn["VKPSTORDAT"] = "0";
                    dwReturn["VKPNACHL"] = "0";
                    dwReturn["VKPVERTKZ"] = " ";
                    dwReturn["VKPVKNPOS"] = "000";
                    dwReturn["VKPLTERMIN1"] = "0";
                    dwReturn["VKPLTART1"] = " ";
                    dwReturn["VKPMENGEP1"] = "0";
                    dwReturn["VKPLTERMIN2"] = "0";
                    dwReturn["VKPLTART2"] = " ";
                    dwReturn["VKPMENGEP2"] = "0";
                    dwReturn["VKPLTERMIN3"] = "0";
                    dwReturn["VKPLTART3"] = " ";
                    dwReturn["VKPMENGEP3"] = "0";
                    dwReturn["VKPLTERMIN4"] = "0";
                    dwReturn["VKPLTART4"] = " ";
                    dwReturn["VKPMENGEP4"] = "0";
                    dwReturn["VKPLTERMIN5"] = "0";
                    dwReturn["VKPLTART5"] = " ";
                    dwReturn["VKPMENGEP5"] = "0";
                    dwReturn["VKPSHOE"] = "0";
                    dwReturn["VKPSLAE"] = "0";
                    dwReturn["VKPOPTRLAE"] = "0";
                    dwReturn["VKPOPTART"] = " ";
                    dwReturn["VKPSPUL"] = "0";
                    dwReturn["VKPSPULG"] = "0";
                    dwReturn["VKPSPULGV"] = "0";
                    dwReturn["VKPSPULGB"] = "0";
                    dwReturn["VKPSPULM"] = "0";
                    dwReturn["VKPSPULMV"] = "0";
                    dwReturn["VKPSPULMB"] = "0";
                    dwReturn["VKPSPUL2"] = "0";
                    dwReturn["VKPSPULG2"] = "0";
                    dwReturn["VKPHUELSE"] = "      ";
                    dwReturn["VKPKF"] = " ";
                    dwReturn["VKPFDRES"] = " ";
                    dwReturn["VKPWI"] = " ";
                    dwReturn["VKPSCHLICHTGR"] = "     ";
                    dwReturn["VKPSCHLICHTNR"] = "               ";
                    dwReturn["VKPHABR"] = " ";
                    dwReturn["VKPVABR"] = " ";
                    dwReturn["VKPSETKZ"] = " ";
                    dwReturn["VKPPRGRP"] = "        ";
                    dwReturn["VKPLFDNR"] = "000";
                    dwReturn["VKPARTPRGR"] = "   ";
                    dwReturn["VKPCOUPON"] = " ";
                    dwReturn["VKPPREIS"] = "0000000000";
                    dwReturn["VKPPREH"] = "KG ";
                    dwReturn["VKPPREHGRP"] = "4";
                    dwReturn["VKPPREHFKT"] = "000001000000";
                    dwReturn["VKPPRKZ"] = "  ";
                    dwReturn["VKPPREISPRF"] = "N";
                    dwReturn["VKPUGSACHB"] = "        ";
                    dwReturn["VKPPRLPREIS"] = "0000000000";
                    dwReturn["VKPPREISUG"] = "0";
                    dwReturn["VKPKONFEKT"] = "0";
                    dwReturn["VKPPOSWERT"] = "0";
                    dwReturn["VKPSTAFFELF"] = " ";
                    dwReturn["VKPVGUET"] = " ";
                    dwReturn["VKPSONDERP"] = " ";
                    dwReturn["VKPINDEXNA1"] = "      ";
                    dwReturn["VKPINDEXBA1"] = "0";
                    dwReturn["VKPINDEXWE1"] = "0";
                    dwReturn["VKPINDEXHS1"] = "0";
                    dwReturn["VKPINDEXNA2"] = "      ";
                    dwReturn["VKPINDEXBA2"] = "0";
                    dwReturn["VKPINDEXWE2"] = "0";
                    dwReturn["VKPINDEXHS2"] = "0";
                    dwReturn["VKPINDEXNA3"] = "      ";
                    dwReturn["VKPINDEXBA3"] = "0";
                    dwReturn["VKPINDEXWE3"] = "0";
                    dwReturn["VKPINDEXHS3"] = "0";
                    dwReturn["VKPKOAUFKRS"] = "  ";
                    dwReturn["VKPKOAUFLFD"] = "000000";
                    dwReturn["VKPKOAUFPOS"] = "000";
                    dwReturn["VKPKOAUFART"] = "  ";
                    dwReturn["VKPARTPRF"] = " ";
                    dwReturn["VKPKZFREI"] = " ";
                    dwReturn["VKPFARBGRP"] = " ";
                    dwReturn["VKPIAEDAT"] = "0";
                    dwReturn["VKPEMENGEV"] = "0";
                    dwReturn["VKPEMENGEB"] = "0";
                    dwReturn["VKPPMENGE"] = "0";
                    dwReturn["VKPVERTEIL"] = " ";
                    dwReturn["VKPWDECK"] = " ";
                    dwReturn["VKPKANR"] = "00000000";
                    dwReturn["VKPKAPOS"] = "0000";
                    dwReturn["VKPABLGRD"] = "  ";
                    dwReturn["VKPGELISTET"] = " ";
                    dwReturn["VKPKONKURENT"] = "        ";
                    dwReturn["VKPKPREIS"] = "0000000000";
                    dwReturn["VKPHOCHRECH"] = " ";
                    dwReturn["VKPERFOLG"] = "0";
                    dwReturn["VKPANT"] = "0";
                    dwReturn["VKPANTSAV"] = "0";
                    dwReturn["VKPSIGNED"] = " ";
                    dwReturn["VKPABS"] = "0";
                    dwReturn["VKPABRKZ"] = " ";
                    dwReturn["VKPNOCOUNT"] = " ";
                    dwReturn["VKPEXAUFKRS"] = "  ";
                    dwReturn["VKPEXAUFLFD"] = "000000";
                    dwReturn["VKPEXAUFPOS"] = "000";
                    dwReturn["VKPEXART"] = "                    ";
                    dwReturn["VKPEXVAR"] = "   ";
                    dwReturn["VKPEXDESS"] = "          ";
                    dwReturn["VKPEXCOLORIT"] = "          ";
                    dwReturn["VKPRAPLG"] = "0";
                    dwReturn["VKPRAPWDT"] = "0";
                    dwReturn["VKPGESSTA"] = "  ";
                    dwReturn["VKPARTSTA"] = "50";
                    dwReturn["VKPPRSTA"] = "60";
                    dwReturn["VKPBSTSTA"] = "70";
                    dwReturn["VKPTERMSTA"] = "80";
                    dwReturn["VKPMGV"] = "0";
                    dwReturn["VKPMGB"] = "0";
                    dwReturn["VKPMGZU"] = "0";
                    dwReturn["VKPSTV"] = "1";
                    dwReturn["VKPSTB"] = "1";
                    dwReturn["VKPSTZU"] = "0";
                    dwReturn["VKPSTLGV"] = "0";
                    dwReturn["VKPSTLGB"] = "0";
                    dwReturn["VKPPAS"] = "0";
                    dwReturn["VKPPAI"] = "0";
                    dwReturn["VKPTSTS"] = "0";
                    dwReturn["VKPTSTI"] = "0";
                    dwReturn["VKPTSTLG"] = "0";
                    dwReturn["VKPTSTMAX"] = "0";
                    dwReturn["VKPUBLI"] = "J";
                    dwReturn["VKPAZUTEIL"] = " ";
                    dwReturn["VKPERSART"] = "J";
                    dwReturn["VKPZUTART"] = "1";
                    dwReturn["VKPZSBER"] = "J";
                    dwReturn["VKPFA"] = "100";
                    dwReturn["VKPGA"] = "100";
                    dwReturn["VKPQA"] = "100";
                    dwReturn["VKPMAART"] = " ";
                    dwReturn["VKPMAFZST"] = "0";
                    dwReturn["VKPZUSAM"] = "  ";
                    dwReturn["VKPZUDOPA"] = "           ";
                    dwReturn["VKPZUDPA"] = " ";
                    dwReturn["VKPGENEHM"] = " ";
                    dwReturn["VKPMUVERT"] = "    ";
                    dwReturn["VKPZRUECK"] = "J";
                    dwReturn["VKPZKDAT"] = "0";
                    dwReturn["VKPZKBEN"] = "        ";
                    dwReturn["VKPSTKNEUTR"] = " ";
                    dwReturn["VKPPARTGL"] = "000";
                    dwReturn["VKPKONFKZ"] = " ";
                    dwReturn["VKPKETTELN"] = " ";
                    dwReturn["VKPRESSACHB"] = "        ";
                    dwReturn["VKPLAEVON"] = "0";
                    dwReturn["VKPLAEBIS"] = "0";
                    dwReturn["VKPSTDLAE"] = "0";
                    dwReturn["VKPSFERTKZ"] = " ";
                    dwReturn["VKPREGEL"] = "00000005";
                    dwReturn["VKPZUTPRIO"] = " ";
                    dwReturn["VKPSTAFFNR"] = "00";
                    dwReturn["VKPMAXPKT"] = "0";
                    dwReturn["VKPANZ1"] = "0";
                    dwReturn["VKPLAENGE1"] = "0";
                    dwReturn["VKPBREITE1"] = "0";
                    dwReturn["VKPANZ2"] = "0";
                    dwReturn["VKPLAENGE2"] = "0";
                    dwReturn["VKPBREITE2"] = "0";
                    dwReturn["VKPANZ3"] = "0";
                    dwReturn["VKPLAENGE3"] = "0";
                    dwReturn["VKPBREITE3"] = "0";
                    dwReturn["VKPANZ4"] = "0";
                    dwReturn["VKPLAENGE4"] = "0";
                    dwReturn["VKPBREITE4"] = "0";
                    dwReturn["VKPANZ5"] = "0";
                    dwReturn["VKPLAENGE5"] = "0";
                    dwReturn["VKPBREITE5"] = "0";
                    dwReturn["VKPFIXMASS"] = " ";
                    dwReturn["VKPURLAND"] = "   ";
                    dwReturn["VKPPRFBEG"] = " ";
                    dwReturn["VKPPRFVKD"] = " ";
                    dwReturn["VKPEINWERK"] = " ";
                    dwReturn["VKPWERK"] = " ";
                    dwReturn["VKPQPKTH"] = "0";
                    dwReturn["VKPQPKTLH"] = "0";
                    dwReturn["VKPRICHGL"] = " ";
                    dwReturn["VKPWSCHTXT"] = "   ";
                    dwReturn["VKPFILLER1"] = "                              ";
                    dwReturn["VKPABRUF"] = " ";
                    dwReturn["VKPLIEFKOMP"] = " ";
                    dwReturn["VKPVERSART"] = "   ";
                    dwReturn["VKPZUSATZ"] = "                                   ";
                    dwReturn["VKPKDKOMM"] = "               ";
                    dwReturn["VKPLTEILNR"] = "0000";
                    dwReturn["VKPVERSLO"] = "01";
                    dwReturn["VKPAUTOFREI"] = "J";
                    dwReturn["VKPSTRECKE"] = " ";
                    dwReturn["VKPANGETEXT"] = " ";
                    dwReturn["VKPANGEWIE"] = "0";
                    dwReturn["VKPBESTTEXT"] = " ";
                    dwReturn["VKPBESTWIE"] = "0";
                    dwReturn["VKPLIEFTEXT"] = " ";
                    dwReturn["VKPLIEFWIE"] = "0";
                    dwReturn["VKPRECHTEXT"] = " ";
                    dwReturn["VKPRECHWIE"] = "0";
                    dwReturn["VKPLVORTEXT"] = " ";
                    dwReturn["VKPLVORWIE"] = "0";
                    dwReturn["VKPIVVTTEXT"] = " ";
                    dwReturn["VKPIVVTWIE"] = "0";
                    dwReturn["VKPIVDITEXT"] = " ";
                    dwReturn["VKPIVDIWIE"] = "0";
                    dwReturn["VKPARTTEXT"] = " ";
                    dwReturn["VKPANGEALLG"] = "   ";
                    dwReturn["VKPBESTALLG"] = "   ";
                    dwReturn["VKPLIEFALLG"] = "   ";
                    dwReturn["VKPRECHALLG"] = "   ";
                    dwReturn["VKPLVORALLG"] = "   ";
                    dwReturn["VKPIVVTALLG"] = "   ";
                    dwReturn["VKPIVDIALLG"] = "   ";
                    dwReturn["VKPANL1TXT"] = "   ";
                    dwReturn["VKPANL2TXT"] = "   ";
                    dwReturn["VKPANL3TXT"] = "   ";
                    dwReturn["VKPAGT"] = "          ";
                    dwReturn["VKPAUF1"] = " ";
                    dwReturn["VKPAUF2"] = " ";
                    dwReturn["VKPAUF3"] = " ";
                    dwReturn["VKPDISPO"] = " ";
                    dwReturn["VKPDDBENID"] = "        ";
                    dwReturn["VKPDDAUFTNR"] = "0000";
                    dwReturn["VKPEKOLL"] = "     ";
                    dwReturn["VKPEART"] = "                        ";
                    dwReturn["VKPEFARBE"] = "          ";
                    dwReturn["VKPLVERD"] = " ";
                    dwReturn["VKPWOBST"] = " ";
                    dwReturn["VKPEAKZ"] = " ";
                    dwReturn["VKPWAEHRSL"] = "RMB";
                    dwReturn["VKPKURS"] = "10000";
                    dwReturn["VKPBETRAG"] = "1";
                    dwReturn["VKPHWAEHRSL"] = "RMB";
                    dwReturn["VKPHEUROKURS"] = "0";
                    dwReturn["VKPHEUROKURSVK"] = " ";
                    dwReturn["VKPFEUROKURS"] = "0";
                    dwReturn["VKPFEUROKURSVK"] = " ";
                    dwReturn["VKPTERMNR"] = "0";
                    dwReturn["VKPFAELLIG"] = "0";
                    dwReturn["VKPSICHER"] = " ";
                    dwReturn["VKPSICHP"] = "0";
                    dwReturn["VKPAKKRED"] = "               ";
                    dwReturn["VKPBESTPOS"] = "000";
                    dwReturn["VKPDBLATT"] = " ";
                    dwReturn["VKPTBRIEF"] = " ";
                    dwReturn["VKPARTBILD"] = " ";
                    dwReturn["VKPFORMAT"] = " ";
                    dwReturn["VKPZEUGNIS"] = " ";
                    dwReturn["VKPPLANKRS"] = "  ";
                    dwReturn["VKPPLANLFD"] = "000000";
                    dwReturn["VKPRES1"] = " ";
                    dwReturn["VKPRES2"] = " ";
                    dwReturn["VKPVKZUABVH"] = " ";
                    dwReturn["VKPVKZUSAMP"] = " ";
                    dwReturn["VKPVKZUADR"] = " ";
                    dwReturn["VKPFKSPKZ"] = " ";
                    dwReturn["VKPFKSPRD"] = "0";
                    dwReturn["VKPFKSPTD"] = "0";
                    dwReturn["VKPKREDLIM"] = "0000000000";
                    dwReturn["VKPSWING"] = "0000000000";
                    dwReturn["VKPRAITING"] = "   ";
                    dwReturn["VKPVERSCHL"] = "  ";
                    dwReturn["VKPKREDBIS"] = "0";
                    dwReturn["VKPKREDVON"] = "0";
                    dwReturn["VKPLUEBKZ"] = " ";
                    dwReturn["VKPFRDAT"] = "0";
                    dwReturn["VKPFRZEIT"] = "0";
                    dwReturn["VKPFRBENID"] = "        ";
                    dwReturn["VKPFRKZ"] = " ";
                    dwReturn["VKPCUSIGNED"] = " ";
                    dwReturn["VKPSTPROV"] = "0";
                    dwReturn["VKPSTFRACHT"] = "0";
                    dwReturn["VKPSTFRME"] = "   ";
                    dwReturn["VKPSTIMP"] = "0";
                    dwReturn["VKPSTVERS"] = "0";
                    dwReturn["VKPSTZOLL"] = "0";
                    dwReturn["VKPFRGRENZ"] = "0";
                    dwReturn["VKPFRGRME"] = "   ";
                    dwReturn["VKPVERSGRENZ"] = "0";
                    dwReturn["VKPZTARIF"] = "                    ";
                    dwReturn["VKPEDIKZ"] = " ";
                    dwReturn["VKPKOMMNR"] = "                    ";
                    dwReturn["VKPKOMMPOS"] = "0000";
                    dwReturn["VKPEDIDAT"] = "0";
                    dwReturn["VKPEDIZEIT"] = "0";
                    dwReturn["VKPURBESTPOS"] = "000";
                    dwReturn["VKPVERTRNRK"] = "                    ";
                    dwReturn["VKPVERTRPOSK"] = "0000";
                    dwReturn["VKPOPREIS"] = "0000000000";
                    dwReturn["VKPOMENGE"] = "0";
                    dwReturn["VKPWUTERMKO"] = "0";
                    dwReturn["VKPKZERSATZ"] = " ";
                    dwReturn["VKPBUSIMODE"] = "   ";
                    dwReturn["VKPEXMANDANT"] = "  ";
                    dwReturn["VKPRUECKTG"] = "0";
                    dwReturn["VKPLIEFTERMN"] = "0";
                    dwReturn["VKPVERARBSTA"] = "90";
                    dwReturn["VKPCTO"] = " ";
                    dwReturn["VKPVTRNRK2"] = "                    ";
                    dwReturn["VKPVTRPOSK2"] = "0";
                    dwReturn["VKPAENTIME"] = "0";
                    dwReturn["VKPMAINPROG"] = "        ";
                    dwReturn["VKPSAMPTYP"] = "   ";
                    dwReturn["VKPUSRSTA"] = "  ";
                    dwReturn["VKPACCVERS"] = "   ";
                    dwReturn["VKPLIART"] = "     ";
                    dwReturn["VKPDELTAE"] = "0";
                    dwReturn["VKPLIART2"] = "     ";
                    dwReturn["VKPDELTAE2"] = "0";
                    dwReturn["VKPLIART3"] = "     ";
                    dwReturn["VKPDELTAE3"] = "0";
                    dwReturn["VKPLINKMARK"] = " ";
                    dwReturn["VKPKREDNL"] = " ";
                    dwReturn["VKPEINSATZG"] = "    ";
                    dwReturn["VKPVERWEND"] = "    ";
                    dwReturn["VKPQSDOK"] = " ";
                    dwReturn["VKPABGABE"] = " ";
                    dwReturn["VKPHK1"] = "0";
                    dwReturn["VKPHK2"] = "0";
                    dwReturn["VKPHK3"] = "0";
                    dwReturn["VKPHK4"] = "0";
                    dwReturn["VKPHK5"] = "0";
                    dwReturn["VKPHK6"] = "0";
                    dwReturn["VKPHK7"] = "0";
                    dwReturn["VKPHK8"] = "0";
                    dwReturn["VKPHK9"] = "0";
                    dwReturn["VKPHK10"] = "0";
                    dwReturn["VKPGSPH"] = "0";
                    dwReturn["VKPMMIN"] = "0";
                    dwReturn["VKPFILLER2"] = "                                                          ";
                    #endregion
                    break;
                case "JLT":
                    #region=========
                    dwReturn["VKPMANDANT"] = "00";
                    dwReturn["VKPSA"] = "  ";
                    dwReturn["VKPAUFKRS"] = "H3";
                    dwReturn["VKPAUFLFD"] = "004238";
                    dwReturn["VKPAUFPOS"] = "006";
                    dwReturn["VKPAENDST"] = "00000000";
                    dwReturn["VKPAENDZL"] = "0";
                    dwReturn["VKPAENDBEN"] = "        ";
                    dwReturn["VKPAENDDAT"] = "0";
                    dwReturn["VKPNEUBEN"] = "LXJ     ";
                    dwReturn["VKPNEUDAT"] = "20140128";
                    dwReturn["VKPPAENDDAT"] = "0";
                    dwReturn["VKPPAENPROG"] = "        ";
                    dwReturn["VKPAESTAT"] = "S";
                    dwReturn["VKPVB"] = "1  ";
                    dwReturn["VKPVG"] = "USD";
                    dwReturn["VKPKUNDNR"] = "00000103";
                    dwReturn["VKPAUFART"] = "NA";
                    dwReturn["VKPSACHBE"] = "LXJ     ";
                    dwReturn["VKPPOSTYP"] = "REC";
                    dwReturn["VKPABWERT"] = "0";
                    dwReturn["VKPMUSTER"] = " ";
                    dwReturn["VKPABVK"] = " ";
                    dwReturn["VKPEIL"] = " ";
                    dwReturn["VKPEZEIT"] = "728";
                    dwReturn["VKPERL"] = "J";
                    dwReturn["VKPERLDAT"] = "0";
                    dwReturn["VKPERLBEN"] = "        ";
                    dwReturn["VKPPRODST"] = "O";
                    dwReturn["VKPARTST"] = "F";
                    dwReturn["VKPKOLL"] = "F2014";
                    dwReturn["VKPART"] = "H3-4238                 ";
                    dwReturn["VKPFARBE"] = "1         ";
                    dwReturn["VKPGROE"] = "       ";
                    dwReturn["VKPZENSUR"] = "1";
                    dwReturn["VKPAUFMART"] = "01";
                    dwReturn["VKPVERPART"] = "   ";
                    dwReturn["VKPKURZBEZ"] = "TRSZB     ";
                    dwReturn["VKPKKOLL"] = "     ";
                    dwReturn["VKPKDARTNR"] = "IRWWBF5311              ";
                    dwReturn["VKPKDBEZ"] = "MULTI 032                     ";
                    dwReturn["VKPKDFARBNR"] = "          ";
                    dwReturn["VKPPRGR"] = "FC ";
                    dwReturn["VKPARTGRP"] = "33 ";
                    dwReturn["VKPDSACHB"] = "        ";
                    dwReturn["VKPZIELGR"] = "    ";
                    dwReturn["VKPMENGE1"] = "5000";
                    dwReturn["VKPMENGE2"] = "0";
                    dwReturn["VKPRESERV"] = "0";
                    dwReturn["VKPZUGET"] = "0";
                    dwReturn["VKPFREIGE"] = "0";
                    dwReturn["VKPGAUFBEST"] = "0";
                    dwReturn["VKPKOMMISS"] = "0";
                    dwReturn["VKPFAKT"] = "0";
                    dwReturn["VKPVERS"] = "0";
                    dwReturn["VKPEINGET"] = "0";
                    dwReturn["VKPOFFEN"] = "5000";
                    dwReturn["VKPMEEH"] = "CM ";
                    dwReturn["VKPMEEHGRP"] = "2";
                    dwReturn["VKPMEEHFKT"] = "000000010000";
                    dwReturn["VKPMENGE1T1"] = "100";
                    dwReturn["VKPMENGE1T2"] = "50";
                    dwReturn["VKPMENGE1T3"] = "66";
                    dwReturn["VKPMENGE1T4"] = "14";
                    dwReturn["VKPRESERVT1"] = "0";
                    dwReturn["VKPRESERVT2"] = "0";
                    dwReturn["VKPRESERVT3"] = "0";
                    dwReturn["VKPRESERVT4"] = "0";
                    dwReturn["VKPZUGETT1"] = "0";
                    dwReturn["VKPZUGETT2"] = "0";
                    dwReturn["VKPZUGETT3"] = "0";
                    dwReturn["VKPZUGETT4"] = "0";
                    dwReturn["VKPFREIGET1"] = "0";
                    dwReturn["VKPFREIGET2"] = "0";
                    dwReturn["VKPFREIGET3"] = "0";
                    dwReturn["VKPFREIGET4"] = "0";
                    dwReturn["VKPGAUFBESTT1"] = "0";
                    dwReturn["VKPGAUFBESTT2"] = "0";
                    dwReturn["VKPGAUFBESTT3"] = "0";
                    dwReturn["VKPGAUFBESTT4"] = "0";
                    dwReturn["VKPKOMMIST1"] = "0";
                    dwReturn["VKPKOMMIST2"] = "0";
                    dwReturn["VKPKOMMIST3"] = "0";
                    dwReturn["VKPKOMMIST4"] = "0";
                    dwReturn["VKPFAKTT1"] = "0";
                    dwReturn["VKPFAKTT2"] = "0";
                    dwReturn["VKPFAKTT3"] = "0";
                    dwReturn["VKPFAKTT4"] = "0";
                    dwReturn["VKPVERST1"] = "0";
                    dwReturn["VKPVERST2"] = "0";
                    dwReturn["VKPVERST3"] = "0";
                    dwReturn["VKPVERST4"] = "0";
                    dwReturn["VKPEINTT1"] = "0";
                    dwReturn["VKPEINTT2"] = "0";
                    dwReturn["VKPEINTT3"] = "0";
                    dwReturn["VKPEINTT4"] = "0";
                    dwReturn["VKPOFFENT1"] = "100";
                    dwReturn["VKPOFFENT2"] = "50";
                    dwReturn["VKPOFFENT3"] = "66";
                    dwReturn["VKPOFFENT4"] = "14";
                    dwReturn["VKPWVTERM"] = "0";
                    dwReturn["VKPWUTERM"] = "20140215";
                    dwReturn["VKPFREITERM"] = "20140216";
                    dwReturn["VKPVERSTERM"] = "20140216";
                    dwReturn["VKPLIEFTERM"] = "20140216";
                    dwReturn["VKPLIEFEING"] = "16.02.14";
                    dwReturn["VKPEINTTERM"] = "0";
                    dwReturn["VKPEINTEING"] = "        ";
                    dwReturn["VKPVERZEING1"] = "14.02.14";
                    dwReturn["VKPVERZTERM1"] = "20140214";
                    dwReturn["VKPBESTTERM1"] = "0";
                    dwReturn["VKPVERZEING2"] = "16.02.14";
                    dwReturn["VKPVERZTERM2"] = "20140216";
                    dwReturn["VKPBESTTERM2"] = "0";
                    dwReturn["VKPVERZEING3"] = "16.02.14";
                    dwReturn["VKPVERZTERM3"] = "20140216";
                    dwReturn["VKPBESTTERM3"] = "0";
                    dwReturn["VKPVERZEING4"] = "        ";
                    dwReturn["VKPVERZTERM4"] = "0";
                    dwReturn["VKPBESTTERM4"] = "0";
                    dwReturn["VKPVERZEING5"] = "        ";
                    dwReturn["VKPVERZTERM5"] = "0";
                    dwReturn["VKPBESTTERM5"] = "0";
                    dwReturn["VKPLVDAT"] = "0";
                    dwReturn["VKPEINTVON"] = "0";
                    dwReturn["VKPVALUTA"] = "0";
                    dwReturn["VKPVALDAT"] = "0";
                    dwReturn["VKPLIEFZEIT"] = "                                        ";
                    dwReturn["VKPLZEIT"] = "0";
                    dwReturn["VKPSTORDAT"] = "0";
                    dwReturn["VKPNACHL"] = "0";
                    dwReturn["VKPVERTKZ"] = " ";
                    dwReturn["VKPVKNPOS"] = "000";
                    dwReturn["VKPLTERMIN1"] = "0";
                    dwReturn["VKPLTART1"] = " ";
                    dwReturn["VKPMENGEP1"] = "0";
                    dwReturn["VKPLTERMIN2"] = "0";
                    dwReturn["VKPLTART2"] = " ";
                    dwReturn["VKPMENGEP2"] = "0";
                    dwReturn["VKPLTERMIN3"] = "0";
                    dwReturn["VKPLTART3"] = " ";
                    dwReturn["VKPMENGEP3"] = "0";
                    dwReturn["VKPLTERMIN4"] = "0";
                    dwReturn["VKPLTART4"] = " ";
                    dwReturn["VKPMENGEP4"] = "0";
                    dwReturn["VKPLTERMIN5"] = "0";
                    dwReturn["VKPLTART5"] = " ";
                    dwReturn["VKPMENGEP5"] = "0";
                    dwReturn["VKPSHOE"] = "0";
                    dwReturn["VKPSLAE"] = "0";
                    dwReturn["VKPOPTRLAE"] = "0";
                    dwReturn["VKPOPTART"] = " ";
                    dwReturn["VKPSPUL"] = "0";
                    dwReturn["VKPSPULG"] = "0";
                    dwReturn["VKPSPULGV"] = "0";
                    dwReturn["VKPSPULGB"] = "0";
                    dwReturn["VKPSPULM"] = "0";
                    dwReturn["VKPSPULMV"] = "0";
                    dwReturn["VKPSPULMB"] = "0";
                    dwReturn["VKPSPUL2"] = "0";
                    dwReturn["VKPSPULG2"] = "0";
                    dwReturn["VKPHUELSE"] = "      ";
                    dwReturn["VKPKF"] = " ";
                    dwReturn["VKPFDRES"] = " ";
                    dwReturn["VKPWI"] = " ";
                    dwReturn["VKPSCHLICHTGR"] = "     ";
                    dwReturn["VKPSCHLICHTNR"] = "               ";
                    dwReturn["VKPHABR"] = " ";
                    dwReturn["VKPVABR"] = " ";
                    dwReturn["VKPSETKZ"] = " ";
                    dwReturn["VKPPRGRP"] = "        ";
                    dwReturn["VKPLFDNR"] = "000";
                    dwReturn["VKPARTPRGR"] = "   ";
                    dwReturn["VKPCOUPON"] = " ";
                    dwReturn["VKPPREIS"] = "0000002600";
                    dwReturn["VKPPREH"] = "YRD";
                    dwReturn["VKPPREHGRP"] = "2";
                    dwReturn["VKPPREHFKT"] = "000000914400";
                    dwReturn["VKPPRKZ"] = "  ";
                    dwReturn["VKPPREISPRF"] = "N";
                    dwReturn["VKPUGSACHB"] = "        ";
                    dwReturn["VKPPRLPREIS"] = "0000000000";
                    dwReturn["VKPPREISUG"] = "0";
                    dwReturn["VKPKONFEKT"] = "0";
                    dwReturn["VKPPOSWERT"] = "9";
                    dwReturn["VKPSTAFFELF"] = " ";
                    dwReturn["VKPVGUET"] = " ";
                    dwReturn["VKPSONDERP"] = " ";
                    dwReturn["VKPINDEXNA1"] = "      ";
                    dwReturn["VKPINDEXBA1"] = "0";
                    dwReturn["VKPINDEXWE1"] = "0";
                    dwReturn["VKPINDEXHS1"] = "0";
                    dwReturn["VKPINDEXNA2"] = "      ";
                    dwReturn["VKPINDEXBA2"] = "0";
                    dwReturn["VKPINDEXWE2"] = "0";
                    dwReturn["VKPINDEXHS2"] = "0";
                    dwReturn["VKPINDEXNA3"] = "      ";
                    dwReturn["VKPINDEXBA3"] = "0";
                    dwReturn["VKPINDEXWE3"] = "0";
                    dwReturn["VKPINDEXHS3"] = "0";
                    dwReturn["VKPKOAUFKRS"] = "  ";
                    dwReturn["VKPKOAUFLFD"] = "000000";
                    dwReturn["VKPKOAUFPOS"] = "000";
                    dwReturn["VKPKOAUFART"] = "  ";
                    dwReturn["VKPARTPRF"] = " ";
                    dwReturn["VKPKZFREI"] = " ";
                    dwReturn["VKPFARBGRP"] = " ";
                    dwReturn["VKPARTUG"] = Encoding.Default.GetBytes(" ".PadRight(20)); ;
                    dwReturn["VKPFARBEUG"] = Encoding.Default.GetBytes(" ".PadRight(10)); ;
                    dwReturn["VKPARTOG"] = Encoding.Default.GetBytes(" ".PadRight(20)); ;
                    dwReturn["VKPFARBEOG"] = Encoding.Default.GetBytes(" ".PadRight(10)); ;
                    dwReturn["VKPIAEDAT"] = "79859891";
                    dwReturn["VKPEMENGEV"] = "0";
                    dwReturn["VKPEMENGEB"] = "0";
                    dwReturn["VKPPMENGE"] = "0";
                    dwReturn["VKPVERTEIL"] = " ";
                    dwReturn["VKPWDECK"] = " ";
                    dwReturn["VKPKANR"] = "00000000";
                    dwReturn["VKPKAPOS"] = "0000";
                    dwReturn["VKPABLGRD"] = "  ";
                    dwReturn["VKPGELISTET"] = " ";
                    dwReturn["VKPKONKURENT"] = "        ";
                    dwReturn["VKPKPREIS"] = "0000000000";
                    dwReturn["VKPHOCHRECH"] = " ";
                    dwReturn["VKPERFOLG"] = "0";
                    dwReturn["VKPANT"] = "0";
                    dwReturn["VKPANTSAV"] = "0";
                    dwReturn["VKPSIGNED"] = " ";
                    dwReturn["VKPABS"] = "0";
                    dwReturn["VKPABRKZ"] = " ";
                    dwReturn["VKPNOCOUNT"] = " ";
                    dwReturn["VKPEXAUFKRS"] = "  ";
                    dwReturn["VKPEXAUFLFD"] = "000000";
                    dwReturn["VKPEXAUFPOS"] = "000";
                    dwReturn["VKPEXART"] = "0000                ";
                    dwReturn["VKPEXVAR"] = "   ";
                    dwReturn["VKPEXDESS"] = "          ";
                    dwReturn["VKPEXCOLORIT"] = "          ";
                    dwReturn["VKPRAPLG"] = "0";
                    dwReturn["VKPRAPWDT"] = "0";
                    dwReturn["VKPGESSTA"] = "  ";
                    dwReturn["VKPARTSTA"] = "50";
                    dwReturn["VKPPRSTA"] = "60";
                    dwReturn["VKPBSTSTA"] = "70";
                    dwReturn["VKPTERMSTA"] = "80";
                    dwReturn["VKPMGV"] = "0";
                    dwReturn["VKPMGB"] = "99";
                    dwReturn["VKPMGZU"] = "0";
                    dwReturn["VKPSTV"] = "1";
                    dwReturn["VKPSTB"] = "1";
                    dwReturn["VKPSTZU"] = "0";
                    dwReturn["VKPSTLGV"] = "100";
                    dwReturn["VKPSTLGB"] = "9999000";
                    dwReturn["VKPPAS"] = "0";
                    dwReturn["VKPPAI"] = "0";
                    dwReturn["VKPTSTS"] = "1";
                    dwReturn["VKPTSTI"] = "0";
                    dwReturn["VKPTSTLG"] = "0";
                    dwReturn["VKPTSTMAX"] = "0";
                    dwReturn["VKPUBLI"] = "J";
                    dwReturn["VKPAZUTEIL"] = " ";
                    dwReturn["VKPERSART"] = "J";
                    dwReturn["VKPZUTART"] = "1";
                    dwReturn["VKPZSBER"] = "N";
                    dwReturn["VKPFA"] = "1";
                    dwReturn["VKPGA"] = "100";
                    dwReturn["VKPQA"] = "100";
                    dwReturn["VKPMAART"] = " ";
                    dwReturn["VKPMAFZST"] = "0";
                    dwReturn["VKPZUSAM"] = "  ";
                    dwReturn["VKPZUDOPA"] = "           ";
                    dwReturn["VKPZUDPA"] = " ";
                    dwReturn["VKPGENEHM"] = " ";
                    dwReturn["VKPMUVERT"] = "    ";
                    dwReturn["VKPZRUECK"] = "J";
                    dwReturn["VKPZKDAT"] = "0";
                    dwReturn["VKPZKBEN"] = "        ";
                    dwReturn["VKPSTKNEUTR"] = " ";
                    dwReturn["VKPPARTGL"] = "000";
                    dwReturn["VKPKONFKZ"] = " ";
                    dwReturn["VKPKETTELN"] = " ";
                    dwReturn["VKPRESSACHB"] = "        ";
                    dwReturn["VKPLAEVON"] = "5000";
                    dwReturn["VKPLAEBIS"] = "0";
                    dwReturn["VKPSTDLAE"] = "5000";
                    dwReturn["VKPSFERTKZ"] = " ";
                    dwReturn["VKPREGEL"] = "00000001";
                    dwReturn["VKPZUTPRIO"] = " ";
                    dwReturn["VKPSTAFFNR"] = "00";
                    dwReturn["VKPMAXPKT"] = "0";
                    dwReturn["VKPANZ1"] = "0";
                    dwReturn["VKPLAENGE1"] = "0";
                    dwReturn["VKPBREITE1"] = "0";
                    dwReturn["VKPANZ2"] = "0";
                    dwReturn["VKPLAENGE2"] = "0";
                    dwReturn["VKPBREITE2"] = "0";
                    dwReturn["VKPANZ3"] = "0";
                    dwReturn["VKPLAENGE3"] = "0";
                    dwReturn["VKPBREITE3"] = "0";
                    dwReturn["VKPANZ4"] = "0";
                    dwReturn["VKPLAENGE4"] = "0";
                    dwReturn["VKPBREITE4"] = "0";
                    dwReturn["VKPANZ5"] = "0";
                    dwReturn["VKPLAENGE5"] = "0";
                    dwReturn["VKPBREITE5"] = "0";
                    dwReturn["VKPFIXMASS"] = " ";
                    dwReturn["VKPURLAND"] = "   ";
                    dwReturn["VKPPRFBEG"] = " ";
                    dwReturn["VKPPRFVKD"] = " ";
                    dwReturn["VKPEINWERK"] = " ";
                    dwReturn["VKPWERK"] = " ";
                    dwReturn["VKPQPKTH"] = "0";
                    dwReturn["VKPQPKTLH"] = "0";
                    dwReturn["VKPRICHGL"] = " ";
                    dwReturn["VKPWSCHTXT"] = "   ";
                    dwReturn["VKPFILLER1"] = "                              ";
                    dwReturn["VKPABRUF"] = " ";
                    dwReturn["VKPLIEFKOMP"] = " ";
                    dwReturn["VKPVERSART"] = "   ";
                    dwReturn["VKPZUSATZ"] = "°´Òâ¼ûÖØ´ò                         ";
                    dwReturn["VKPKDKOMM"] = "               ";
                    dwReturn["VKPLTEILNR"] = "0000";
                    dwReturn["VKPVERSLO"] = "  ";
                    dwReturn["VKPAUTOFREI"] = "J";
                    dwReturn["VKPSTRECKE"] = " ";
                    dwReturn["VKPANGETEXT"] = " ";
                    dwReturn["VKPANGEWIE"] = "0";
                    dwReturn["VKPBESTTEXT"] = " ";
                    dwReturn["VKPBESTWIE"] = "0";
                    dwReturn["VKPLIEFTEXT"] = " ";
                    dwReturn["VKPLIEFWIE"] = "0";
                    dwReturn["VKPRECHTEXT"] = " ";
                    dwReturn["VKPRECHWIE"] = "0";
                    dwReturn["VKPLVORTEXT"] = " ";
                    dwReturn["VKPLVORWIE"] = "0";
                    dwReturn["VKPIVVTTEXT"] = " ";
                    dwReturn["VKPIVVTWIE"] = "0";
                    dwReturn["VKPIVDITEXT"] = " ";
                    dwReturn["VKPIVDIWIE"] = "0";
                    dwReturn["VKPARTTEXT"] = " ";
                    dwReturn["VKPANGEALLG"] = "   ";
                    dwReturn["VKPBESTALLG"] = "   ";
                    dwReturn["VKPLIEFALLG"] = "   ";
                    dwReturn["VKPRECHALLG"] = "   ";
                    dwReturn["VKPLVORALLG"] = "   ";
                    dwReturn["VKPIVVTALLG"] = "   ";
                    dwReturn["VKPIVDIALLG"] = "   ";
                    dwReturn["VKPANL1TXT"] = "   ";
                    dwReturn["VKPANL2TXT"] = "   ";
                    dwReturn["VKPANL3TXT"] = "   ";
                    dwReturn["VKPAGT"] = "          ";
                    dwReturn["VKPAUF1"] = " ";
                    dwReturn["VKPAUF2"] = " ";
                    dwReturn["VKPAUF3"] = " ";
                    dwReturn["VKPDISPO"] = " ";
                    dwReturn["VKPDDBENID"] = "        ";
                    dwReturn["VKPDDAUFTNR"] = "0000";
                    dwReturn["VKPEKOLL"] = "     ";
                    dwReturn["VKPEART"] = "                        ";
                    dwReturn["VKPEFARBE"] = "          ";
                    dwReturn["VKPLVERD"] = " ";
                    dwReturn["VKPWOBST"] = " ";
                    dwReturn["VKPEAKZ"] = " ";
                    dwReturn["VKPWAEHRSL"] = "USD";
                    dwReturn["VKPKURS"] = "60969";
                    dwReturn["VKPBETRAG"] = "1";
                    dwReturn["VKPHWAEHRSL"] = "RMB";
                    dwReturn["VKPHEUROKURS"] = "0";
                    dwReturn["VKPHEUROKURSVK"] = " ";
                    dwReturn["VKPFEUROKURS"] = "0";
                    dwReturn["VKPFEUROKURSVK"] = " ";
                    dwReturn["VKPTERMNR"] = "0";
                    dwReturn["VKPFAELLIG"] = "0";
                    dwReturn["VKPSICHER"] = " ";
                    dwReturn["VKPSICHP"] = "0";
                    dwReturn["VKPAKKRED"] = "               ";
                    dwReturn["VKPBESTPOS"] = "000";
                    dwReturn["VKPDBLATT"] = " ";
                    dwReturn["VKPTBRIEF"] = " ";
                    dwReturn["VKPARTBILD"] = " ";
                    dwReturn["VKPFORMAT"] = " ";
                    dwReturn["VKPZEUGNIS"] = " ";
                    dwReturn["VKPPLANKRS"] = "  ";
                    dwReturn["VKPPLANLFD"] = "000000";
                    dwReturn["VKPRES1"] = " ";
                    dwReturn["VKPRES2"] = " ";
                    dwReturn["VKPVKZUABVH"] = " ";
                    dwReturn["VKPVKZUSAMP"] = " ";
                    dwReturn["VKPVKZUADR"] = " ";
                    dwReturn["VKPFKSPKZ"] = " ";
                    dwReturn["VKPFKSPRD"] = "0";
                    dwReturn["VKPFKSPTD"] = "0";
                    dwReturn["VKPKREDLIM"] = "0000000000";
                    dwReturn["VKPSWING"] = "0000000000";
                    dwReturn["VKPRAITING"] = "   ";
                    dwReturn["VKPVERSCHL"] = "  ";
                    dwReturn["VKPKREDBIS"] = "0";
                    dwReturn["VKPKREDVON"] = "0";
                    dwReturn["VKPLUEBKZ"] = " ";
                    dwReturn["VKPFRDAT"] = "0";
                    dwReturn["VKPFRZEIT"] = "0";
                    dwReturn["VKPFRBENID"] = "        ";
                    dwReturn["VKPFRKZ"] = " ";
                    dwReturn["VKPCUSIGNED"] = " ";
                    dwReturn["VKPSTPROV"] = "0";
                    dwReturn["VKPSTFRACHT"] = "0";
                    dwReturn["VKPSTFRME"] = "   ";
                    dwReturn["VKPSTIMP"] = "0";
                    dwReturn["VKPSTVERS"] = "0";
                    dwReturn["VKPSTZOLL"] = "0";
                    dwReturn["VKPFRGRENZ"] = "0";
                    dwReturn["VKPFRGRME"] = "   ";
                    dwReturn["VKPVERSGRENZ"] = "0";
                    dwReturn["VKPZTARIF"] = "                    ";
                    dwReturn["VKPEDIKZ"] = " ";
                    dwReturn["VKPKOMMNR"] = "                    ";
                    dwReturn["VKPKOMMPOS"] = "0000";
                    dwReturn["VKPEDIDAT"] = "0";
                    dwReturn["VKPEDIZEIT"] = "0";
                    dwReturn["VKPURBESTPOS"] = "000";
                    dwReturn["VKPVERTRNRK"] = "                    ";
                    dwReturn["VKPVERTRPOSK"] = "0000";
                    dwReturn["VKPOPREIS"] = "0000000000";
                    dwReturn["VKPOMENGE"] = "0";
                    dwReturn["VKPWUTERMKO"] = "0";
                    dwReturn["VKPKZERSATZ"] = " ";
                    dwReturn["VKPBUSIMODE"] = "   ";
                    dwReturn["VKPEXMANDANT"] = "  ";
                    dwReturn["VKPRUECKTG"] = "0";
                    dwReturn["VKPLIEFTERMN"] = "0";
                    dwReturn["VKPVERARBSTA"] = "90";
                    dwReturn["VKPCTO"] = " ";
                    dwReturn["VKPVTRNRK2"] = "                    ";
                    dwReturn["VKPVTRPOSK2"] = "0";
                    dwReturn["VKPAENTIME"] = "0";
                    dwReturn["VKPMAINPROG"] = "        ";
                    dwReturn["VKPSAMPTYP"] = "   ";
                    dwReturn["VKPUSRSTA"] = "  ";
                    dwReturn["VKPACCVERS"] = "   ";
                    dwReturn["VKPLIART"] = "     ";
                    dwReturn["VKPDELTAE"] = "0";
                    dwReturn["VKPLIART2"] = "     ";
                    dwReturn["VKPDELTAE2"] = "0";
                    dwReturn["VKPLIART3"] = "     ";
                    dwReturn["VKPDELTAE3"] = "0";
                    dwReturn["VKPLINKMARK"] = " ";
                    dwReturn["VKPKREDNL"] = " ";
                    dwReturn["VKPEINSATZG"] = "    ";
                    dwReturn["VKPVERWEND"] = "    ";
                    dwReturn["VKPQSDOK"] = " ";
                    dwReturn["VKPABGABE"] = " ";
                    dwReturn["VKPHK"] = "0";
                    dwReturn["VKPGSPH"] = "0";
                    dwReturn["VKPMMIN"] = "0";
                    dwReturn["VKPFILLER2"] = "                                                                                              ";

                    #endregion
                    break;
            }
        }
        public DataSet Convert2VKPOS(DataRow dwInput, string ITXDBVERSION, bool IsConvert = false)
        {
            DataSet SResult = new DataSet();
            SResult = QueryVKPOS(dwInput, 0);
            DataRow dwReturn = null;
            if (SResult.Tables[0].Rows.Count > 0)
            {
                dwReturn = SResult.Tables[0].Rows[0];
            }
            else
            {
                dwReturn = SResult.Tables[0].Rows.Add();
            }
            switch (ITXDBVERSION)
            {
                case "YGR":
                case "YCC":
                default:
                    #region=========
                    dwReturn["VKPMANDANT"] = "XX";
                    dwReturn["VKPSA"] = "  ";
                    dwReturn["VKPAUFKRS"] = "  ";
                    dwReturn["VKPAUFLFD"] = "      ";
                    dwReturn["VKPAUFPOS"] = "   ";
                    dwReturn["VKPAENDST"] = "00000000";
                    dwReturn["VKPAENDZL"] = "0";
                    dwReturn["VKPAENDBEN"] = "        ";
                    dwReturn["VKPAENDDAT"] = "0";
                    dwReturn["VKPNEUBEN"] = "        ";
                    dwReturn["VKPNEUDAT"] = "0";
                    dwReturn["VKPPAENDDAT"] = "0";
                    dwReturn["VKPPAENPROG"] = "        ";
                    dwReturn["VKPAESTAT"] = "S";
                    dwReturn["VKPVB"] = "   ";
                    dwReturn["VKPVG"] = "   ";
                    dwReturn["VKPKUNDNR"] = "00000010";
                    dwReturn["VKPAUFART"] = "NA";
                    dwReturn["VKPSACHBE"] = "        ";
                    dwReturn["VKPPOSTYP"] = "   ";
                    dwReturn["VKPABWERT"] = "0";
                    dwReturn["VKPMUSTER"] = " ";
                    dwReturn["VKPABVK"] = " ";
                    dwReturn["VKPEIL"] = " ";
                    dwReturn["VKPEZEIT"] = "0";
                    dwReturn["VKPERL"] = " ";
                    dwReturn["VKPERLDAT"] = "0";
                    dwReturn["VKPERLBEN"] = "        ";
                    dwReturn["VKPPRODST"] = " ";
                    dwReturn["VKPARTST"] = " ";
                    dwReturn["VKPKOLL"] = "     ";
                    dwReturn["VKPART"] = "                        ";
                    dwReturn["VKPFARBE"] = "          ";
                    dwReturn["VKPGROE"] = "       ";
                    dwReturn["VKPZENSUR"] = "1";
                    dwReturn["VKPAUFMART"] = "  ";
                    dwReturn["VKPVERPART"] = "1  ";
                    dwReturn["VKPKURZBEZ"] = "          ";
                    dwReturn["VKPKKOLL"] = "     ";
                    dwReturn["VKPKDARTNR"] = "                        ";
                    dwReturn["VKPKDBEZ"] = "                              ";
                    dwReturn["VKPKDFARBNR"] = "          ";
                    dwReturn["VKPPRGR"] = "   ";
                    dwReturn["VKPARTGRP"] = "   ";
                    dwReturn["VKPDSACHB"] = "        ";
                    dwReturn["VKPZIELGR"] = "    ";
                    dwReturn["VKPMENGE1"] = "0";
                    dwReturn["VKPMENGE2"] = "0";
                    dwReturn["VKPRESERV"] = "0";
                    dwReturn["VKPZUGET"] = "0";
                    dwReturn["VKPFREIGE"] = "0";
                    dwReturn["VKPGAUFBEST"] = "0";
                    dwReturn["VKPKOMMISS"] = "0";
                    dwReturn["VKPFAKT"] = "0";
                    dwReturn["VKPVERS"] = "0";
                    dwReturn["VKPEINGET"] = "0";
                    dwReturn["VKPOFFEN"] = "0";
                    dwReturn["VKPMEEH"] = "   ";
                    dwReturn["VKPMEEHGRP"] = "1";
                    dwReturn["VKPMEEHFKT"] = "000001000000";
                    dwReturn["VKPMENGE1T1"] = "0";
                    dwReturn["VKPMENGE1T2"] = "0";
                    dwReturn["VKPMENGE1T3"] = "0";
                    dwReturn["VKPMENGE1T4"] = "1000";
                    dwReturn["VKPRESERVT1"] = "0";
                    dwReturn["VKPRESERVT2"] = "0";
                    dwReturn["VKPRESERVT3"] = "0";
                    dwReturn["VKPRESERVT4"] = "0";
                    dwReturn["VKPZUGETT1"] = "0";
                    dwReturn["VKPZUGETT2"] = "0";
                    dwReturn["VKPZUGETT3"] = "0";
                    dwReturn["VKPZUGETT4"] = "0";
                    dwReturn["VKPFREIGET1"] = "0";
                    dwReturn["VKPFREIGET2"] = "0";
                    dwReturn["VKPFREIGET3"] = "0";
                    dwReturn["VKPFREIGET4"] = "0";
                    dwReturn["VKPGAUFBESTT1"] = "0";
                    dwReturn["VKPGAUFBESTT2"] = "0";
                    dwReturn["VKPGAUFBESTT3"] = "0";
                    dwReturn["VKPGAUFBESTT4"] = "0";
                    dwReturn["VKPKOMMIST1"] = "0";
                    dwReturn["VKPKOMMIST2"] = "0";
                    dwReturn["VKPKOMMIST3"] = "0";
                    dwReturn["VKPKOMMIST4"] = "0";
                    dwReturn["VKPFAKTT1"] = "0";
                    dwReturn["VKPFAKTT2"] = "0";
                    dwReturn["VKPFAKTT3"] = "0";
                    dwReturn["VKPFAKTT4"] = "0";
                    dwReturn["VKPVERST1"] = "0";
                    dwReturn["VKPVERST2"] = "0";
                    dwReturn["VKPVERST3"] = "0";
                    dwReturn["VKPVERST4"] = "0";
                    dwReturn["VKPEINTT1"] = "0";
                    dwReturn["VKPEINTT2"] = "0";
                    dwReturn["VKPEINTT3"] = "0";
                    dwReturn["VKPEINTT4"] = "0";
                    dwReturn["VKPOFFENT1"] = "0";
                    dwReturn["VKPOFFENT2"] = "0";
                    dwReturn["VKPOFFENT3"] = "0";
                    dwReturn["VKPOFFENT4"] = "0";
                    dwReturn["VKPWVTERM"] = "0";
                    dwReturn["VKPWUTERM"] = "0";
                    dwReturn["VKPFREITERM"] = "0";
                    dwReturn["VKPVERSTERM"] = "0";
                    dwReturn["VKPLIEFTERM"] = "0";
                    dwReturn["VKPLIEFEING"] = "        ";
                    dwReturn["VKPEINTTERM"] = "0";
                    dwReturn["VKPEINTEING"] = "        ";
                    dwReturn["VKPVERZEING1"] = "        ";
                    dwReturn["VKPVERZTERM1"] = "0";
                    dwReturn["VKPBESTTERM1"] = "0";
                    dwReturn["VKPVERZEING2"] = "        ";
                    dwReturn["VKPVERZTERM2"] = "0";
                    dwReturn["VKPBESTTERM2"] = "0";
                    dwReturn["VKPVERZEING3"] = "        ";
                    dwReturn["VKPVERZTERM3"] = "0";
                    dwReturn["VKPBESTTERM3"] = "0";
                    dwReturn["VKPVERZEING4"] = "        ";
                    dwReturn["VKPVERZTERM4"] = "0";
                    dwReturn["VKPBESTTERM4"] = "0";
                    dwReturn["VKPVERZEING5"] = "        ";
                    dwReturn["VKPVERZTERM5"] = "0";
                    dwReturn["VKPBESTTERM5"] = "0";
                    dwReturn["VKPLVDAT"] = "0";
                    dwReturn["VKPEINTVON"] = "0";
                    dwReturn["VKPVALUTA"] = "0";
                    dwReturn["VKPVALDAT"] = "0";
                    dwReturn["VKPLIEFZEIT"] = "                                        ";
                    dwReturn["VKPLZEIT"] = "0";
                    dwReturn["VKPSTORDAT"] = "0";
                    dwReturn["VKPNACHL"] = "0";
                    dwReturn["VKPVERTKZ"] = " ";
                    dwReturn["VKPVKNPOS"] = "000";
                    dwReturn["VKPLTERMIN1"] = "0";
                    dwReturn["VKPLTART1"] = " ";
                    dwReturn["VKPMENGEP1"] = "0";
                    dwReturn["VKPLTERMIN2"] = "0";
                    dwReturn["VKPLTART2"] = " ";
                    dwReturn["VKPMENGEP2"] = "0";
                    dwReturn["VKPLTERMIN3"] = "0";
                    dwReturn["VKPLTART3"] = " ";
                    dwReturn["VKPMENGEP3"] = "0";
                    dwReturn["VKPLTERMIN4"] = "0";
                    dwReturn["VKPLTART4"] = " ";
                    dwReturn["VKPMENGEP4"] = "0";
                    dwReturn["VKPLTERMIN5"] = "0";
                    dwReturn["VKPLTART5"] = " ";
                    dwReturn["VKPMENGEP5"] = "0";
                    dwReturn["VKPSHOE"] = "0";
                    dwReturn["VKPSLAE"] = "0";
                    dwReturn["VKPOPTRLAE"] = "0";
                    dwReturn["VKPOPTART"] = " ";
                    dwReturn["VKPSPUL"] = "0";
                    dwReturn["VKPSPULG"] = "0";
                    dwReturn["VKPSPULGV"] = "0";
                    dwReturn["VKPSPULGB"] = "0";
                    dwReturn["VKPSPULM"] = "0";
                    dwReturn["VKPSPULMV"] = "0";
                    dwReturn["VKPSPULMB"] = "0";
                    dwReturn["VKPSPUL2"] = "0";
                    dwReturn["VKPSPULG2"] = "0";
                    dwReturn["VKPHUELSE"] = "      ";
                    dwReturn["VKPKF"] = " ";
                    dwReturn["VKPFDRES"] = " ";
                    dwReturn["VKPWI"] = " ";
                    dwReturn["VKPSCHLICHTGR"] = "     ";
                    dwReturn["VKPSCHLICHTNR"] = "               ";
                    dwReturn["VKPHABR"] = " ";
                    dwReturn["VKPVABR"] = " ";
                    dwReturn["VKPSETKZ"] = " ";
                    dwReturn["VKPPRGRP"] = "        ";
                    dwReturn["VKPLFDNR"] = "000";
                    dwReturn["VKPARTPRGR"] = "   ";
                    dwReturn["VKPCOUPON"] = " ";
                    dwReturn["VKPPREIS"] = "0000000000";
                    dwReturn["VKPPREH"] = "KG ";
                    dwReturn["VKPPREHGRP"] = "4";
                    dwReturn["VKPPREHFKT"] = "000001000000";
                    dwReturn["VKPPRKZ"] = "  ";
                    dwReturn["VKPPREISPRF"] = "N";
                    dwReturn["VKPUGSACHB"] = "        ";
                    dwReturn["VKPPRLPREIS"] = "0000000000";
                    dwReturn["VKPPREISUG"] = "0";
                    dwReturn["VKPKONFEKT"] = "0";
                    dwReturn["VKPPOSWERT"] = "0";
                    dwReturn["VKPSTAFFELF"] = " ";
                    dwReturn["VKPVGUET"] = " ";
                    dwReturn["VKPSONDERP"] = " ";
                    dwReturn["VKPINDEXNA1"] = "      ";
                    dwReturn["VKPINDEXBA1"] = "0";
                    dwReturn["VKPINDEXWE1"] = "0";
                    dwReturn["VKPINDEXHS1"] = "0";
                    dwReturn["VKPINDEXNA2"] = "      ";
                    dwReturn["VKPINDEXBA2"] = "0";
                    dwReturn["VKPINDEXWE2"] = "0";
                    dwReturn["VKPINDEXHS2"] = "0";
                    dwReturn["VKPINDEXNA3"] = "      ";
                    dwReturn["VKPINDEXBA3"] = "0";
                    dwReturn["VKPINDEXWE3"] = "0";
                    dwReturn["VKPINDEXHS3"] = "0";
                    dwReturn["VKPKOAUFKRS"] = "  ";
                    dwReturn["VKPKOAUFLFD"] = "000000";
                    dwReturn["VKPKOAUFPOS"] = "000";
                    dwReturn["VKPKOAUFART"] = "  ";
                    dwReturn["VKPARTPRF"] = " ";
                    dwReturn["VKPKZFREI"] = " ";
                    dwReturn["VKPFARBGRP"] = " ";
                    dwReturn["VKPIAEDAT"] = "0";
                    dwReturn["VKPEMENGEV"] = "0";
                    dwReturn["VKPEMENGEB"] = "0";
                    dwReturn["VKPPMENGE"] = "0";
                    dwReturn["VKPVERTEIL"] = " ";
                    dwReturn["VKPWDECK"] = " ";
                    dwReturn["VKPKANR"] = "00000000";
                    dwReturn["VKPKAPOS"] = "0000";
                    dwReturn["VKPABLGRD"] = "  ";
                    dwReturn["VKPGELISTET"] = " ";
                    dwReturn["VKPKONKURENT"] = "        ";
                    dwReturn["VKPKPREIS"] = "0000000000";
                    dwReturn["VKPHOCHRECH"] = " ";
                    dwReturn["VKPERFOLG"] = "0";
                    dwReturn["VKPANT"] = "0";
                    dwReturn["VKPANTSAV"] = "0";
                    dwReturn["VKPSIGNED"] = " ";
                    dwReturn["VKPABS"] = "0";
                    dwReturn["VKPABRKZ"] = " ";
                    dwReturn["VKPNOCOUNT"] = " ";
                    dwReturn["VKPEXAUFKRS"] = "  ";
                    dwReturn["VKPEXAUFLFD"] = "000000";
                    dwReturn["VKPEXAUFPOS"] = "000";
                    dwReturn["VKPEXART"] = "                    ";
                    dwReturn["VKPEXVAR"] = "   ";
                    dwReturn["VKPEXDESS"] = "          ";
                    dwReturn["VKPEXCOLORIT"] = "          ";
                    dwReturn["VKPRAPLG"] = "0";
                    dwReturn["VKPRAPWDT"] = "0";
                    dwReturn["VKPGESSTA"] = "  ";
                    dwReturn["VKPARTSTA"] = "50";
                    dwReturn["VKPPRSTA"] = "60";
                    dwReturn["VKPBSTSTA"] = "70";
                    dwReturn["VKPTERMSTA"] = "80";
                    dwReturn["VKPMGV"] = "0";
                    dwReturn["VKPMGB"] = "0";
                    dwReturn["VKPMGZU"] = "0";
                    dwReturn["VKPSTV"] = "1";
                    dwReturn["VKPSTB"] = "1";
                    dwReturn["VKPSTZU"] = "0";
                    dwReturn["VKPSTLGV"] = "0";
                    dwReturn["VKPSTLGB"] = "0";
                    dwReturn["VKPPAS"] = "0";
                    dwReturn["VKPPAI"] = "0";
                    dwReturn["VKPTSTS"] = "0";
                    dwReturn["VKPTSTI"] = "0";
                    dwReturn["VKPTSTLG"] = "0";
                    dwReturn["VKPTSTMAX"] = "0";
                    dwReturn["VKPUBLI"] = "J";
                    dwReturn["VKPAZUTEIL"] = " ";
                    dwReturn["VKPERSART"] = "J";
                    dwReturn["VKPZUTART"] = "1";
                    dwReturn["VKPZSBER"] = "J";
                    dwReturn["VKPFA"] = "100";
                    dwReturn["VKPGA"] = "100";
                    dwReturn["VKPQA"] = "100";
                    dwReturn["VKPMAART"] = " ";
                    dwReturn["VKPMAFZST"] = "0";
                    dwReturn["VKPZUSAM"] = "  ";
                    dwReturn["VKPZUDOPA"] = "           ";
                    dwReturn["VKPZUDPA"] = " ";
                    dwReturn["VKPGENEHM"] = " ";
                    dwReturn["VKPMUVERT"] = "    ";
                    dwReturn["VKPZRUECK"] = "J";
                    dwReturn["VKPZKDAT"] = "0";
                    dwReturn["VKPZKBEN"] = "        ";
                    dwReturn["VKPSTKNEUTR"] = " ";
                    dwReturn["VKPPARTGL"] = "000";
                    dwReturn["VKPKONFKZ"] = " ";
                    dwReturn["VKPKETTELN"] = " ";
                    dwReturn["VKPRESSACHB"] = "        ";
                    dwReturn["VKPLAEVON"] = "0";
                    dwReturn["VKPLAEBIS"] = "0";
                    dwReturn["VKPSTDLAE"] = "0";
                    dwReturn["VKPSFERTKZ"] = " ";
                    dwReturn["VKPREGEL"] = "00000005";
                    dwReturn["VKPZUTPRIO"] = " ";
                    dwReturn["VKPSTAFFNR"] = "00";
                    dwReturn["VKPMAXPKT"] = "0";
                    dwReturn["VKPANZ1"] = "0";
                    dwReturn["VKPLAENGE1"] = "0";
                    dwReturn["VKPBREITE1"] = "0";
                    dwReturn["VKPANZ2"] = "0";
                    dwReturn["VKPLAENGE2"] = "0";
                    dwReturn["VKPBREITE2"] = "0";
                    dwReturn["VKPANZ3"] = "0";
                    dwReturn["VKPLAENGE3"] = "0";
                    dwReturn["VKPBREITE3"] = "0";
                    dwReturn["VKPANZ4"] = "0";
                    dwReturn["VKPLAENGE4"] = "0";
                    dwReturn["VKPBREITE4"] = "0";
                    dwReturn["VKPANZ5"] = "0";
                    dwReturn["VKPLAENGE5"] = "0";
                    dwReturn["VKPBREITE5"] = "0";
                    dwReturn["VKPFIXMASS"] = " ";
                    dwReturn["VKPURLAND"] = "   ";
                    dwReturn["VKPPRFBEG"] = " ";
                    dwReturn["VKPPRFVKD"] = " ";
                    dwReturn["VKPEINWERK"] = " ";
                    dwReturn["VKPWERK"] = " ";
                    dwReturn["VKPQPKTH"] = "0";
                    dwReturn["VKPQPKTLH"] = "0";
                    dwReturn["VKPRICHGL"] = " ";
                    dwReturn["VKPWSCHTXT"] = "   ";
                    dwReturn["VKPFILLER1"] = "                              ";
                    dwReturn["VKPABRUF"] = " ";
                    dwReturn["VKPLIEFKOMP"] = " ";
                    dwReturn["VKPVERSART"] = "   ";
                    dwReturn["VKPZUSATZ"] = "                                   ";
                    dwReturn["VKPKDKOMM"] = "               ";
                    dwReturn["VKPLTEILNR"] = "0000";
                    dwReturn["VKPVERSLO"] = "  ";
                    dwReturn["VKPAUTOFREI"] = "J";
                    dwReturn["VKPSTRECKE"] = " ";
                    dwReturn["VKPANGETEXT"] = " ";
                    dwReturn["VKPANGEWIE"] = "0";
                    dwReturn["VKPBESTTEXT"] = " ";
                    dwReturn["VKPBESTWIE"] = "0";
                    dwReturn["VKPLIEFTEXT"] = " ";
                    dwReturn["VKPLIEFWIE"] = "0";
                    dwReturn["VKPRECHTEXT"] = " ";
                    dwReturn["VKPRECHWIE"] = "0";
                    dwReturn["VKPLVORTEXT"] = " ";
                    dwReturn["VKPLVORWIE"] = "0";
                    dwReturn["VKPIVVTTEXT"] = " ";
                    dwReturn["VKPIVVTWIE"] = "0";
                    dwReturn["VKPIVDITEXT"] = " ";
                    dwReturn["VKPIVDIWIE"] = "0";
                    dwReturn["VKPARTTEXT"] = " ";
                    dwReturn["VKPANGEALLG"] = "   ";
                    dwReturn["VKPBESTALLG"] = "   ";
                    dwReturn["VKPLIEFALLG"] = "   ";
                    dwReturn["VKPRECHALLG"] = "   ";
                    dwReturn["VKPLVORALLG"] = "   ";
                    dwReturn["VKPIVVTALLG"] = "   ";
                    dwReturn["VKPIVDIALLG"] = "   ";
                    dwReturn["VKPANL1TXT"] = "   ";
                    dwReturn["VKPANL2TXT"] = "   ";
                    dwReturn["VKPANL3TXT"] = "   ";
                    dwReturn["VKPAGT"] = "          ";
                    dwReturn["VKPAUF1"] = " ";
                    dwReturn["VKPAUF2"] = " ";
                    dwReturn["VKPAUF3"] = " ";
                    dwReturn["VKPDISPO"] = " ";
                    dwReturn["VKPDDBENID"] = "        ";
                    dwReturn["VKPDDAUFTNR"] = "0000";
                    dwReturn["VKPEKOLL"] = "     ";
                    dwReturn["VKPEART"] = "                        ";
                    dwReturn["VKPEFARBE"] = "          ";
                    dwReturn["VKPLVERD"] = " ";
                    dwReturn["VKPWOBST"] = " ";
                    dwReturn["VKPEAKZ"] = " ";
                    dwReturn["VKPWAEHRSL"] = "RMB";
                    dwReturn["VKPKURS"] = "10000";
                    dwReturn["VKPBETRAG"] = "1";
                    dwReturn["VKPHWAEHRSL"] = "RMB";
                    dwReturn["VKPHEUROKURS"] = "0";
                    dwReturn["VKPHEUROKURSVK"] = " ";
                    dwReturn["VKPFEUROKURS"] = "0";
                    dwReturn["VKPFEUROKURSVK"] = " ";
                    dwReturn["VKPTERMNR"] = "0";
                    dwReturn["VKPFAELLIG"] = "0";
                    dwReturn["VKPSICHER"] = " ";
                    dwReturn["VKPSICHP"] = "0";
                    dwReturn["VKPAKKRED"] = "               ";
                    dwReturn["VKPBESTPOS"] = "000";
                    dwReturn["VKPDBLATT"] = " ";
                    dwReturn["VKPTBRIEF"] = " ";
                    dwReturn["VKPARTBILD"] = " ";
                    dwReturn["VKPFORMAT"] = " ";
                    dwReturn["VKPZEUGNIS"] = " ";
                    dwReturn["VKPPLANKRS"] = "  ";
                    dwReturn["VKPPLANLFD"] = "000000";
                    dwReturn["VKPRES1"] = " ";
                    dwReturn["VKPRES2"] = " ";
                    dwReturn["VKPVKZUABVH"] = " ";
                    dwReturn["VKPVKZUSAMP"] = " ";
                    dwReturn["VKPVKZUADR"] = " ";
                    dwReturn["VKPFKSPKZ"] = " ";
                    dwReturn["VKPFKSPRD"] = "0";
                    dwReturn["VKPFKSPTD"] = "0";
                    dwReturn["VKPKREDLIM"] = "0000000000";
                    dwReturn["VKPSWING"] = "0000000000";
                    dwReturn["VKPRAITING"] = "   ";
                    dwReturn["VKPVERSCHL"] = "  ";
                    dwReturn["VKPKREDBIS"] = "0";
                    dwReturn["VKPKREDVON"] = "0";
                    dwReturn["VKPLUEBKZ"] = " ";
                    dwReturn["VKPFRDAT"] = "0";
                    dwReturn["VKPFRZEIT"] = "0";
                    dwReturn["VKPFRBENID"] = "        ";
                    dwReturn["VKPFRKZ"] = " ";
                    dwReturn["VKPCUSIGNED"] = " ";
                    dwReturn["VKPSTPROV"] = "0";
                    dwReturn["VKPSTFRACHT"] = "0";
                    dwReturn["VKPSTFRME"] = "   ";
                    dwReturn["VKPSTIMP"] = "0";
                    dwReturn["VKPSTVERS"] = "0";
                    dwReturn["VKPSTZOLL"] = "0";
                    dwReturn["VKPFRGRENZ"] = "0";
                    dwReturn["VKPFRGRME"] = "   ";
                    dwReturn["VKPVERSGRENZ"] = "0";
                    dwReturn["VKPZTARIF"] = "                    ";
                    dwReturn["VKPEDIKZ"] = " ";
                    dwReturn["VKPKOMMNR"] = "                    ";
                    dwReturn["VKPKOMMPOS"] = "0000";
                    dwReturn["VKPEDIDAT"] = "0";
                    dwReturn["VKPEDIZEIT"] = "0";
                    dwReturn["VKPURBESTPOS"] = "000";
                    dwReturn["VKPVERTRNRK"] = "                    ";
                    dwReturn["VKPVERTRPOSK"] = "0000";
                    dwReturn["VKPOPREIS"] = "0000000000";
                    dwReturn["VKPOMENGE"] = "0";
                    dwReturn["VKPWUTERMKO"] = "0";
                    dwReturn["VKPKZERSATZ"] = " ";
                    dwReturn["VKPBUSIMODE"] = "   ";
                    dwReturn["VKPEXMANDANT"] = "  ";
                    dwReturn["VKPRUECKTG"] = "0";
                    dwReturn["VKPLIEFTERMN"] = "0";
                    dwReturn["VKPVERARBSTA"] = "90";
                    dwReturn["VKPCTO"] = " ";
                    dwReturn["VKPVTRNRK2"] = "                    ";
                    dwReturn["VKPVTRPOSK2"] = "0";
                    dwReturn["VKPAENTIME"] = "0";
                    dwReturn["VKPMAINPROG"] = "        ";
                    dwReturn["VKPSAMPTYP"] = "   ";
                    dwReturn["VKPUSRSTA"] = "  ";
                    dwReturn["VKPACCVERS"] = "   ";
                    dwReturn["VKPLIART"] = "     ";
                    dwReturn["VKPDELTAE"] = "0";
                    dwReturn["VKPLIART2"] = "     ";
                    dwReturn["VKPDELTAE2"] = "0";
                    dwReturn["VKPLIART3"] = "     ";
                    dwReturn["VKPDELTAE3"] = "0";
                    dwReturn["VKPLINKMARK"] = " ";
                    dwReturn["VKPKREDNL"] = " ";
                    dwReturn["VKPEINSATZG"] = "    ";
                    dwReturn["VKPVERWEND"] = "    ";
                    dwReturn["VKPQSDOK"] = " ";
                    dwReturn["VKPABGABE"] = " ";
                    dwReturn["VKPHK1"] = "0";
                    dwReturn["VKPHK2"] = "0";
                    dwReturn["VKPHK3"] = "0";
                    dwReturn["VKPHK4"] = "0";
                    dwReturn["VKPHK5"] = "0";
                    dwReturn["VKPHK6"] = "0";
                    dwReturn["VKPHK7"] = "0";
                    dwReturn["VKPHK8"] = "0";
                    dwReturn["VKPHK9"] = "0";
                    dwReturn["VKPHK10"] = "0";
                    dwReturn["VKPGSPH"] = "0";
                    dwReturn["VKPMMIN"] = "0";
                    dwReturn["VKPFILLER2"] = "                                                          ";
                    #endregion
                    break;
                case "JLT":
                    #region
                    dwReturn["VKPMANDANT"] = "00";
                    dwReturn["VKPSA"] = "  ";
                    dwReturn["VKPAUFKRS"] = "H3";
                    dwReturn["VKPAUFLFD"] = "004238";
                    dwReturn["VKPAUFPOS"] = "006";
                    dwReturn["VKPAENDST"] = "00000000";
                    dwReturn["VKPAENDZL"] = "0";
                    dwReturn["VKPAENDBEN"] = "        ";
                    dwReturn["VKPAENDDAT"] = "0";
                    dwReturn["VKPNEUBEN"] = "LXJ     ";
                    dwReturn["VKPNEUDAT"] = "20140128";
                    dwReturn["VKPPAENDDAT"] = "0";
                    dwReturn["VKPPAENPROG"] = "        ";
                    dwReturn["VKPAESTAT"] = "S";
                    dwReturn["VKPVB"] = "1  ";
                    dwReturn["VKPVG"] = "USD";
                    dwReturn["VKPKUNDNR"] = "00000103";
                    dwReturn["VKPAUFART"] = "NA";
                    dwReturn["VKPSACHBE"] = "LXJ     ";
                    dwReturn["VKPPOSTYP"] = "REC";
                    dwReturn["VKPABWERT"] = "0";
                    dwReturn["VKPMUSTER"] = " ";
                    dwReturn["VKPABVK"] = " ";
                    dwReturn["VKPEIL"] = " ";
                    dwReturn["VKPEZEIT"] = "728";
                    dwReturn["VKPERL"] = "J";
                    dwReturn["VKPERLDAT"] = "0";
                    dwReturn["VKPERLBEN"] = "        ";
                    dwReturn["VKPPRODST"] = "O";
                    dwReturn["VKPARTST"] = "F";
                    dwReturn["VKPKOLL"] = "F2014";
                    dwReturn["VKPART"] = "H3-4238                 ";
                    dwReturn["VKPFARBE"] = "1         ";
                    dwReturn["VKPGROE"] = "       ";
                    dwReturn["VKPZENSUR"] = "1";
                    dwReturn["VKPAUFMART"] = "01";
                    dwReturn["VKPVERPART"] = "   ";
                    dwReturn["VKPKURZBEZ"] = "TRSZB     ";
                    dwReturn["VKPKKOLL"] = "     ";
                    dwReturn["VKPKDARTNR"] = "IRWWBF5311              ";
                    dwReturn["VKPKDBEZ"] = "MULTI 032                     ";
                    dwReturn["VKPKDFARBNR"] = "          ";
                    dwReturn["VKPPRGR"] = "FC ";
                    dwReturn["VKPARTGRP"] = "33 ";
                    dwReturn["VKPDSACHB"] = "        ";
                    dwReturn["VKPZIELGR"] = "    ";
                    dwReturn["VKPMENGE1"] = "5000";
                    dwReturn["VKPMENGE2"] = "0";
                    dwReturn["VKPRESERV"] = "0";
                    dwReturn["VKPZUGET"] = "0";
                    dwReturn["VKPFREIGE"] = "0";
                    dwReturn["VKPGAUFBEST"] = "0";
                    dwReturn["VKPKOMMISS"] = "0";
                    dwReturn["VKPFAKT"] = "0";
                    dwReturn["VKPVERS"] = "0";
                    dwReturn["VKPEINGET"] = "0";
                    dwReturn["VKPOFFEN"] = "5000";
                    dwReturn["VKPMEEH"] = "CM ";
                    dwReturn["VKPMEEHGRP"] = "2";
                    dwReturn["VKPMEEHFKT"] = "000000010000";
                    dwReturn["VKPMENGE1T1"] = "100";
                    dwReturn["VKPMENGE1T2"] = "50";
                    dwReturn["VKPMENGE1T3"] = "66";
                    dwReturn["VKPMENGE1T4"] = "14";
                    dwReturn["VKPRESERVT1"] = "0";
                    dwReturn["VKPRESERVT2"] = "0";
                    dwReturn["VKPRESERVT3"] = "0";
                    dwReturn["VKPRESERVT4"] = "0";
                    dwReturn["VKPZUGETT1"] = "0";
                    dwReturn["VKPZUGETT2"] = "0";
                    dwReturn["VKPZUGETT3"] = "0";
                    dwReturn["VKPZUGETT4"] = "0";
                    dwReturn["VKPFREIGET1"] = "0";
                    dwReturn["VKPFREIGET2"] = "0";
                    dwReturn["VKPFREIGET3"] = "0";
                    dwReturn["VKPFREIGET4"] = "0";
                    dwReturn["VKPGAUFBESTT1"] = "0";
                    dwReturn["VKPGAUFBESTT2"] = "0";
                    dwReturn["VKPGAUFBESTT3"] = "0";
                    dwReturn["VKPGAUFBESTT4"] = "0";
                    dwReturn["VKPKOMMIST1"] = "0";
                    dwReturn["VKPKOMMIST2"] = "0";
                    dwReturn["VKPKOMMIST3"] = "0";
                    dwReturn["VKPKOMMIST4"] = "0";
                    dwReturn["VKPFAKTT1"] = "0";
                    dwReturn["VKPFAKTT2"] = "0";
                    dwReturn["VKPFAKTT3"] = "0";
                    dwReturn["VKPFAKTT4"] = "0";
                    dwReturn["VKPVERST1"] = "0";
                    dwReturn["VKPVERST2"] = "0";
                    dwReturn["VKPVERST3"] = "0";
                    dwReturn["VKPVERST4"] = "0";
                    dwReturn["VKPEINTT1"] = "0";
                    dwReturn["VKPEINTT2"] = "0";
                    dwReturn["VKPEINTT3"] = "0";
                    dwReturn["VKPEINTT4"] = "0";
                    dwReturn["VKPOFFENT1"] = "100";
                    dwReturn["VKPOFFENT2"] = "50";
                    dwReturn["VKPOFFENT3"] = "66";
                    dwReturn["VKPOFFENT4"] = "14";
                    dwReturn["VKPWVTERM"] = "0";
                    dwReturn["VKPWUTERM"] = "20140215";
                    dwReturn["VKPFREITERM"] = "20140216";
                    dwReturn["VKPVERSTERM"] = "20140216";
                    dwReturn["VKPLIEFTERM"] = "20140216";
                    dwReturn["VKPLIEFEING"] = "16.02.14";
                    dwReturn["VKPEINTTERM"] = "0";
                    dwReturn["VKPEINTEING"] = "        ";
                    dwReturn["VKPVERZEING1"] = "14.02.14";
                    dwReturn["VKPVERZTERM1"] = "20140214";
                    dwReturn["VKPBESTTERM1"] = "0";
                    dwReturn["VKPVERZEING2"] = "16.02.14";
                    dwReturn["VKPVERZTERM2"] = "20140216";
                    dwReturn["VKPBESTTERM2"] = "0";
                    dwReturn["VKPVERZEING3"] = "16.02.14";
                    dwReturn["VKPVERZTERM3"] = "20140216";
                    dwReturn["VKPBESTTERM3"] = "0";
                    dwReturn["VKPVERZEING4"] = "        ";
                    dwReturn["VKPVERZTERM4"] = "0";
                    dwReturn["VKPBESTTERM4"] = "0";
                    dwReturn["VKPVERZEING5"] = "        ";
                    dwReturn["VKPVERZTERM5"] = "0";
                    dwReturn["VKPBESTTERM5"] = "0";
                    dwReturn["VKPLVDAT"] = "0";
                    dwReturn["VKPEINTVON"] = "0";
                    dwReturn["VKPVALUTA"] = "0";
                    dwReturn["VKPVALDAT"] = "0";
                    dwReturn["VKPLIEFZEIT"] = "                                        ";
                    dwReturn["VKPLZEIT"] = "0";
                    dwReturn["VKPSTORDAT"] = "0";
                    dwReturn["VKPNACHL"] = "0";
                    dwReturn["VKPVERTKZ"] = " ";
                    dwReturn["VKPVKNPOS"] = "000";
                    dwReturn["VKPLTERMIN1"] = "0";
                    dwReturn["VKPLTART1"] = " ";
                    dwReturn["VKPMENGEP1"] = "0";
                    dwReturn["VKPLTERMIN2"] = "0";
                    dwReturn["VKPLTART2"] = " ";
                    dwReturn["VKPMENGEP2"] = "0";
                    dwReturn["VKPLTERMIN3"] = "0";
                    dwReturn["VKPLTART3"] = " ";
                    dwReturn["VKPMENGEP3"] = "0";
                    dwReturn["VKPLTERMIN4"] = "0";
                    dwReturn["VKPLTART4"] = " ";
                    dwReturn["VKPMENGEP4"] = "0";
                    dwReturn["VKPLTERMIN5"] = "0";
                    dwReturn["VKPLTART5"] = " ";
                    dwReturn["VKPMENGEP5"] = "0";
                    dwReturn["VKPSHOE"] = "0";
                    dwReturn["VKPSLAE"] = "0";
                    dwReturn["VKPOPTRLAE"] = "0";
                    dwReturn["VKPOPTART"] = " ";
                    dwReturn["VKPSPUL"] = "0";
                    dwReturn["VKPSPULG"] = "0";
                    dwReturn["VKPSPULGV"] = "0";
                    dwReturn["VKPSPULGB"] = "0";
                    dwReturn["VKPSPULM"] = "0";
                    dwReturn["VKPSPULMV"] = "0";
                    dwReturn["VKPSPULMB"] = "0";
                    dwReturn["VKPSPUL2"] = "0";
                    dwReturn["VKPSPULG2"] = "0";
                    dwReturn["VKPHUELSE"] = "      ";
                    dwReturn["VKPKF"] = " ";
                    dwReturn["VKPFDRES"] = " ";
                    dwReturn["VKPWI"] = " ";
                    dwReturn["VKPSCHLICHTGR"] = "     ";
                    dwReturn["VKPSCHLICHTNR"] = "               ";
                    dwReturn["VKPHABR"] = " ";
                    dwReturn["VKPVABR"] = " ";
                    dwReturn["VKPSETKZ"] = " ";
                    dwReturn["VKPPRGRP"] = "        ";
                    dwReturn["VKPLFDNR"] = "000";
                    dwReturn["VKPARTPRGR"] = "   ";
                    dwReturn["VKPCOUPON"] = " ";
                    dwReturn["VKPPREIS"] = "0000002600";
                    dwReturn["VKPPREH"] = "YRD";
                    dwReturn["VKPPREHGRP"] = "2";
                    dwReturn["VKPPREHFKT"] = "000000914400";
                    dwReturn["VKPPRKZ"] = "  ";
                    dwReturn["VKPPREISPRF"] = "N";
                    dwReturn["VKPUGSACHB"] = "        ";
                    dwReturn["VKPPRLPREIS"] = "0000000000";
                    dwReturn["VKPPREISUG"] = "0";
                    dwReturn["VKPKONFEKT"] = "0";
                    dwReturn["VKPPOSWERT"] = "9";
                    dwReturn["VKPSTAFFELF"] = " ";
                    dwReturn["VKPVGUET"] = " ";
                    dwReturn["VKPSONDERP"] = " ";
                    dwReturn["VKPINDEXNA1"] = "      ";
                    dwReturn["VKPINDEXBA1"] = "0";
                    dwReturn["VKPINDEXWE1"] = "0";
                    dwReturn["VKPINDEXHS1"] = "0";
                    dwReturn["VKPINDEXNA2"] = "      ";
                    dwReturn["VKPINDEXBA2"] = "0";
                    dwReturn["VKPINDEXWE2"] = "0";
                    dwReturn["VKPINDEXHS2"] = "0";
                    dwReturn["VKPINDEXNA3"] = "      ";
                    dwReturn["VKPINDEXBA3"] = "0";
                    dwReturn["VKPINDEXWE3"] = "0";
                    dwReturn["VKPINDEXHS3"] = "0";
                    dwReturn["VKPKOAUFKRS"] = "  ";
                    dwReturn["VKPKOAUFLFD"] = "000000";
                    dwReturn["VKPKOAUFPOS"] = "000";
                    dwReturn["VKPKOAUFART"] = "  ";
                    dwReturn["VKPARTPRF"] = " ";
                    dwReturn["VKPKZFREI"] = " ";
                    dwReturn["VKPFARBGRP"] = " ";
                    dwReturn["VKPARTUG"] = "System.Byte[]";
                    dwReturn["VKPFARBEUG"] = "System.Byte[]";
                    dwReturn["VKPARTOG"] = "System.Byte[]";
                    dwReturn["VKPFARBEOG"] = "System.Byte[]";
                    dwReturn["VKPIAEDAT"] = "79859891";
                    dwReturn["VKPEMENGEV"] = "0";
                    dwReturn["VKPEMENGEB"] = "0";
                    dwReturn["VKPPMENGE"] = "0";
                    dwReturn["VKPVERTEIL"] = " ";
                    dwReturn["VKPWDECK"] = " ";
                    dwReturn["VKPKANR"] = "00000000";
                    dwReturn["VKPKAPOS"] = "0000";
                    dwReturn["VKPABLGRD"] = "  ";
                    dwReturn["VKPGELISTET"] = " ";
                    dwReturn["VKPKONKURENT"] = "        ";
                    dwReturn["VKPKPREIS"] = "0000000000";
                    dwReturn["VKPHOCHRECH"] = " ";
                    dwReturn["VKPERFOLG"] = "0";
                    dwReturn["VKPANT"] = "0";
                    dwReturn["VKPANTSAV"] = "0";
                    dwReturn["VKPSIGNED"] = " ";
                    dwReturn["VKPABS"] = "0";
                    dwReturn["VKPABRKZ"] = " ";
                    dwReturn["VKPNOCOUNT"] = " ";
                    dwReturn["VKPEXAUFKRS"] = "  ";
                    dwReturn["VKPEXAUFLFD"] = "000000";
                    dwReturn["VKPEXAUFPOS"] = "000";
                    dwReturn["VKPEXART"] = "0000                ";
                    dwReturn["VKPEXVAR"] = "   ";
                    dwReturn["VKPEXDESS"] = "          ";
                    dwReturn["VKPEXCOLORIT"] = "          ";
                    dwReturn["VKPRAPLG"] = "0";
                    dwReturn["VKPRAPWDT"] = "0";
                    dwReturn["VKPGESSTA"] = "  ";
                    dwReturn["VKPARTSTA"] = "50";
                    dwReturn["VKPPRSTA"] = "60";
                    dwReturn["VKPBSTSTA"] = "70";
                    dwReturn["VKPTERMSTA"] = "80";
                    dwReturn["VKPMGV"] = "0";
                    dwReturn["VKPMGB"] = "99";
                    dwReturn["VKPMGZU"] = "0";
                    dwReturn["VKPSTV"] = "1";
                    dwReturn["VKPSTB"] = "1";
                    dwReturn["VKPSTZU"] = "0";
                    dwReturn["VKPSTLGV"] = "100";
                    dwReturn["VKPSTLGB"] = "9999000";
                    dwReturn["VKPPAS"] = "0";
                    dwReturn["VKPPAI"] = "0";
                    dwReturn["VKPTSTS"] = "1";
                    dwReturn["VKPTSTI"] = "0";
                    dwReturn["VKPTSTLG"] = "0";
                    dwReturn["VKPTSTMAX"] = "0";
                    dwReturn["VKPUBLI"] = "J";
                    dwReturn["VKPAZUTEIL"] = " ";
                    dwReturn["VKPERSART"] = "J";
                    dwReturn["VKPZUTART"] = "1";
                    dwReturn["VKPZSBER"] = "N";
                    dwReturn["VKPFA"] = "1";
                    dwReturn["VKPGA"] = "100";
                    dwReturn["VKPQA"] = "100";
                    dwReturn["VKPMAART"] = " ";
                    dwReturn["VKPMAFZST"] = "0";
                    dwReturn["VKPZUSAM"] = "  ";
                    dwReturn["VKPZUDOPA"] = "           ";
                    dwReturn["VKPZUDPA"] = " ";
                    dwReturn["VKPGENEHM"] = " ";
                    dwReturn["VKPMUVERT"] = "    ";
                    dwReturn["VKPZRUECK"] = "J";
                    dwReturn["VKPZKDAT"] = "0";
                    dwReturn["VKPZKBEN"] = "        ";
                    dwReturn["VKPSTKNEUTR"] = " ";
                    dwReturn["VKPPARTGL"] = "000";
                    dwReturn["VKPKONFKZ"] = " ";
                    dwReturn["VKPKETTELN"] = " ";
                    dwReturn["VKPRESSACHB"] = "        ";
                    dwReturn["VKPLAEVON"] = "5000";
                    dwReturn["VKPLAEBIS"] = "0";
                    dwReturn["VKPSTDLAE"] = "5000";
                    dwReturn["VKPSFERTKZ"] = " ";
                    dwReturn["VKPREGEL"] = "00000001";
                    dwReturn["VKPZUTPRIO"] = " ";
                    dwReturn["VKPSTAFFNR"] = "00";
                    dwReturn["VKPMAXPKT"] = "0";
                    dwReturn["VKPANZ1"] = "0";
                    dwReturn["VKPLAENGE1"] = "0";
                    dwReturn["VKPBREITE1"] = "0";
                    dwReturn["VKPANZ2"] = "0";
                    dwReturn["VKPLAENGE2"] = "0";
                    dwReturn["VKPBREITE2"] = "0";
                    dwReturn["VKPANZ3"] = "0";
                    dwReturn["VKPLAENGE3"] = "0";
                    dwReturn["VKPBREITE3"] = "0";
                    dwReturn["VKPANZ4"] = "0";
                    dwReturn["VKPLAENGE4"] = "0";
                    dwReturn["VKPBREITE4"] = "0";
                    dwReturn["VKPANZ5"] = "0";
                    dwReturn["VKPLAENGE5"] = "0";
                    dwReturn["VKPBREITE5"] = "0";
                    dwReturn["VKPFIXMASS"] = " ";
                    dwReturn["VKPURLAND"] = "   ";
                    dwReturn["VKPPRFBEG"] = " ";
                    dwReturn["VKPPRFVKD"] = " ";
                    dwReturn["VKPEINWERK"] = " ";
                    dwReturn["VKPWERK"] = " ";
                    dwReturn["VKPQPKTH"] = "0";
                    dwReturn["VKPQPKTLH"] = "0";
                    dwReturn["VKPRICHGL"] = " ";
                    dwReturn["VKPWSCHTXT"] = "   ";
                    dwReturn["VKPFILLER1"] = "                              ";
                    dwReturn["VKPABRUF"] = " ";
                    dwReturn["VKPLIEFKOMP"] = " ";
                    dwReturn["VKPVERSART"] = "   ";
                    dwReturn["VKPZUSATZ"] = "°´Òâ¼ûÖØ´ò                         ";
                    dwReturn["VKPKDKOMM"] = "               ";
                    dwReturn["VKPLTEILNR"] = "0000";
                    dwReturn["VKPVERSLO"] = "  ";
                    dwReturn["VKPAUTOFREI"] = "J";
                    dwReturn["VKPSTRECKE"] = " ";
                    dwReturn["VKPANGETEXT"] = " ";
                    dwReturn["VKPANGEWIE"] = "0";
                    dwReturn["VKPBESTTEXT"] = " ";
                    dwReturn["VKPBESTWIE"] = "0";
                    dwReturn["VKPLIEFTEXT"] = " ";
                    dwReturn["VKPLIEFWIE"] = "0";
                    dwReturn["VKPRECHTEXT"] = " ";
                    dwReturn["VKPRECHWIE"] = "0";
                    dwReturn["VKPLVORTEXT"] = " ";
                    dwReturn["VKPLVORWIE"] = "0";
                    dwReturn["VKPIVVTTEXT"] = " ";
                    dwReturn["VKPIVVTWIE"] = "0";
                    dwReturn["VKPIVDITEXT"] = " ";
                    dwReturn["VKPIVDIWIE"] = "0";
                    dwReturn["VKPARTTEXT"] = " ";
                    dwReturn["VKPANGEALLG"] = "   ";
                    dwReturn["VKPBESTALLG"] = "   ";
                    dwReturn["VKPLIEFALLG"] = "   ";
                    dwReturn["VKPRECHALLG"] = "   ";
                    dwReturn["VKPLVORALLG"] = "   ";
                    dwReturn["VKPIVVTALLG"] = "   ";
                    dwReturn["VKPIVDIALLG"] = "   ";
                    dwReturn["VKPANL1TXT"] = "   ";
                    dwReturn["VKPANL2TXT"] = "   ";
                    dwReturn["VKPANL3TXT"] = "   ";
                    dwReturn["VKPAGT"] = "          ";
                    dwReturn["VKPAUF1"] = " ";
                    dwReturn["VKPAUF2"] = " ";
                    dwReturn["VKPAUF3"] = " ";
                    dwReturn["VKPDISPO"] = " ";
                    dwReturn["VKPDDBENID"] = "        ";
                    dwReturn["VKPDDAUFTNR"] = "0000";
                    dwReturn["VKPEKOLL"] = "     ";
                    dwReturn["VKPEART"] = "                        ";
                    dwReturn["VKPEFARBE"] = "          ";
                    dwReturn["VKPLVERD"] = " ";
                    dwReturn["VKPWOBST"] = " ";
                    dwReturn["VKPEAKZ"] = " ";
                    dwReturn["VKPWAEHRSL"] = "USD";
                    dwReturn["VKPKURS"] = "60969";
                    dwReturn["VKPBETRAG"] = "1";
                    dwReturn["VKPHWAEHRSL"] = "RMB";
                    dwReturn["VKPHEUROKURS"] = "0";
                    dwReturn["VKPHEUROKURSVK"] = " ";
                    dwReturn["VKPFEUROKURS"] = "0";
                    dwReturn["VKPFEUROKURSVK"] = " ";
                    dwReturn["VKPTERMNR"] = "0";
                    dwReturn["VKPFAELLIG"] = "0";
                    dwReturn["VKPSICHER"] = " ";
                    dwReturn["VKPSICHP"] = "0";
                    dwReturn["VKPAKKRED"] = "               ";
                    dwReturn["VKPBESTPOS"] = "000";
                    dwReturn["VKPDBLATT"] = " ";
                    dwReturn["VKPTBRIEF"] = " ";
                    dwReturn["VKPARTBILD"] = " ";
                    dwReturn["VKPFORMAT"] = " ";
                    dwReturn["VKPZEUGNIS"] = " ";
                    dwReturn["VKPPLANKRS"] = "  ";
                    dwReturn["VKPPLANLFD"] = "000000";
                    dwReturn["VKPRES1"] = " ";
                    dwReturn["VKPRES2"] = " ";
                    dwReturn["VKPVKZUABVH"] = " ";
                    dwReturn["VKPVKZUSAMP"] = " ";
                    dwReturn["VKPVKZUADR"] = " ";
                    dwReturn["VKPFKSPKZ"] = " ";
                    dwReturn["VKPFKSPRD"] = "0";
                    dwReturn["VKPFKSPTD"] = "0";
                    dwReturn["VKPKREDLIM"] = "0000000000";
                    dwReturn["VKPSWING"] = "0000000000";
                    dwReturn["VKPRAITING"] = "   ";
                    dwReturn["VKPVERSCHL"] = "  ";
                    dwReturn["VKPKREDBIS"] = "0";
                    dwReturn["VKPKREDVON"] = "0";
                    dwReturn["VKPLUEBKZ"] = " ";
                    dwReturn["VKPFRDAT"] = "0";
                    dwReturn["VKPFRZEIT"] = "0";
                    dwReturn["VKPFRBENID"] = "        ";
                    dwReturn["VKPFRKZ"] = " ";
                    dwReturn["VKPCUSIGNED"] = " ";
                    dwReturn["VKPSTPROV"] = "0";
                    dwReturn["VKPSTFRACHT"] = "0";
                    dwReturn["VKPSTFRME"] = "   ";
                    dwReturn["VKPSTIMP"] = "0";
                    dwReturn["VKPSTVERS"] = "0";
                    dwReturn["VKPSTZOLL"] = "0";
                    dwReturn["VKPFRGRENZ"] = "0";
                    dwReturn["VKPFRGRME"] = "   ";
                    dwReturn["VKPVERSGRENZ"] = "0";
                    dwReturn["VKPZTARIF"] = "                    ";
                    dwReturn["VKPEDIKZ"] = " ";
                    dwReturn["VKPKOMMNR"] = "                    ";
                    dwReturn["VKPKOMMPOS"] = "0000";
                    dwReturn["VKPEDIDAT"] = "0";
                    dwReturn["VKPEDIZEIT"] = "0";
                    dwReturn["VKPURBESTPOS"] = "000";
                    dwReturn["VKPVERTRNRK"] = "                    ";
                    dwReturn["VKPVERTRPOSK"] = "0000";
                    dwReturn["VKPOPREIS"] = "0000000000";
                    dwReturn["VKPOMENGE"] = "0";
                    dwReturn["VKPWUTERMKO"] = "0";
                    dwReturn["VKPKZERSATZ"] = " ";
                    dwReturn["VKPBUSIMODE"] = "   ";
                    dwReturn["VKPEXMANDANT"] = "  ";
                    dwReturn["VKPRUECKTG"] = "0";
                    dwReturn["VKPLIEFTERMN"] = "0";
                    dwReturn["VKPVERARBSTA"] = "90";
                    dwReturn["VKPCTO"] = " ";
                    dwReturn["VKPVTRNRK2"] = "                    ";
                    dwReturn["VKPVTRPOSK2"] = "0";
                    dwReturn["VKPAENTIME"] = "0";
                    dwReturn["VKPMAINPROG"] = "        ";
                    dwReturn["VKPSAMPTYP"] = "   ";
                    dwReturn["VKPUSRSTA"] = "  ";
                    dwReturn["VKPACCVERS"] = "   ";
                    dwReturn["VKPLIART"] = "     ";
                    dwReturn["VKPDELTAE"] = "0";
                    dwReturn["VKPLIART2"] = "     ";
                    dwReturn["VKPDELTAE2"] = "0";
                    dwReturn["VKPLIART3"] = "     ";
                    dwReturn["VKPDELTAE3"] = "0";
                    dwReturn["VKPLINKMARK"] = " ";
                    dwReturn["VKPKREDNL"] = " ";
                    dwReturn["VKPEINSATZG"] = "    ";
                    dwReturn["VKPVERWEND"] = "    ";
                    dwReturn["VKPQSDOK"] = " ";
                    dwReturn["VKPABGABE"] = " ";
                    dwReturn["VKPHK"] = "0";
                    dwReturn["VKPGSPH"] = "0";
                    dwReturn["VKPMMIN"] = "0";
                    dwReturn["VKPFILLER2"] = "                                                                                              ";

                    #endregion
                    break;
            }
            INTEXDBC.MapData(IsConvert, ref dwReturn, dwInput);
            return SResult;
        }

        public void SaveVKPOS(DataRow dwData, string ITXDBVERSION = "50.24", int option = 1)
        {
            DataSet setResult = new DataSet();
            DataTable tbLocal = null;
            bool flgExist = false;
            setResult = QueryVKPOS(dwData);
            if (setResult.Tables.Count > 0)
            {
                tbLocal = setResult.Tables[0];
                if (tbLocal.Rows.Count > 0)
                {
                    flgExist = true;
                }
            }
            if (!flgExist)
            {
                InsertVKPOS(dwData, ITXDBVERSION);
            }
            UpdateVKPOS(dwData, "", option);

        }

        public void InsertVKPOS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            if (dwData != null)
            {
                dwData["VKPNEUBEN"] = app.User;
                dwData["VKPNEUDAT"] = date;
            }
            switch (ITXDBVERSION)
            {
                case "JLT":
                    or1.CommandText = "INSERT INTO VKPOS ( VKPMANDANT,VKPSA,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPAENDST,VKPAENDZL,VKPAENDBEN,VKPAENDDAT,VKPNEUBEN,VKPNEUDAT,VKPPAENDDAT,VKPPAENPROG,VKPAESTAT,VKPVB,VKPVG,VKPKUNDNR,VKPAUFART,VKPSACHBE,VKPPOSTYP,VKPABWERT,VKPMUSTER,VKPABVK,VKPEIL,VKPEZEIT,VKPERL,VKPERLDAT,VKPERLBEN,VKPPRODST,VKPARTST,VKPKOLL,VKPART,VKPFARBE,VKPGROE,VKPZENSUR,VKPAUFMART,VKPVERPART,VKPKURZBEZ,VKPKKOLL,VKPKDARTNR,VKPKDBEZ,VKPKDFARBNR,VKPPRGR,VKPARTGRP,VKPDSACHB,VKPZIELGR,VKPMENGE1,VKPMENGE2,VKPRESERV,VKPZUGET,VKPFREIGE,VKPGAUFBEST,VKPKOMMISS,VKPFAKT,VKPVERS,VKPEINGET,VKPOFFEN,VKPMEEH,VKPMEEHGRP,VKPMEEHFKT,VKPMENGE1T1,VKPMENGE1T2,VKPMENGE1T3,VKPMENGE1T4,VKPRESERVT1,VKPRESERVT2,VKPRESERVT3,VKPRESERVT4,VKPZUGETT1,VKPZUGETT2,VKPZUGETT3,VKPZUGETT4,VKPFREIGET1,VKPFREIGET2,VKPFREIGET3,VKPFREIGET4,VKPGAUFBESTT1,VKPGAUFBESTT2,VKPGAUFBESTT3,VKPGAUFBESTT4,VKPKOMMIST1,VKPKOMMIST2,VKPKOMMIST3,VKPKOMMIST4,VKPFAKTT1,VKPFAKTT2,VKPFAKTT3,VKPFAKTT4,VKPVERST1,VKPVERST2,VKPVERST3,VKPVERST4,VKPEINTT1,VKPEINTT2,VKPEINTT3,VKPEINTT4,VKPOFFENT1,VKPOFFENT2,VKPOFFENT3,VKPOFFENT4,VKPWVTERM,VKPWUTERM,VKPFREITERM,VKPVERSTERM,VKPLIEFTERM,VKPLIEFEING,VKPEINTTERM,VKPEINTEING,VKPVERZEING1,VKPVERZTERM1,VKPBESTTERM1,VKPVERZEING2,VKPVERZTERM2,VKPBESTTERM2,VKPVERZEING3,VKPVERZTERM3,VKPBESTTERM3,VKPVERZEING4,VKPVERZTERM4,VKPBESTTERM4,VKPVERZEING5,VKPVERZTERM5,VKPBESTTERM5,VKPLVDAT,VKPEINTVON,VKPVALUTA,VKPVALDAT,VKPLIEFZEIT,VKPLZEIT,VKPSTORDAT,VKPNACHL,VKPVER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T,VKPANL3TXT,VKPAGT,VKPAUF1,VKPAUF2,VKPAUF3,VKPDISPO,VKPDDBENID,VKPDDAUFTNR,VKPEKOLL,VKPEART,VKPEFARBE,VKPLVERD,VKPWOBST,VKPEAKZ,VKPWAEHRSL,VKPKURS,VKPBETRAG,VKPHWAEHRSL,VKPHEUROKURS,VKPHEUROKURSVK,VKPFEUROKURS,VKPFEUROKURSVK,VKPTERMNR,VKPFAELLIG,VKPSICHER,VKPSICHP,VKPAKKRED,VKPBESTPOS,VKPDBLATT,VKPTBRIEF,VKPARTBILD,VKPFORMAT,VKPZEUGNIS,VKPPLANKRS,VKPPLANLFD,VKPRES1,VKPRES2,VKPVKZUABVH,VKPVKZUSAMP,VKPVKZUADR,VKPFKSPKZ,VKPFKSPRD,VKPFKSPTD,VKPKREDLIM,VKPSWING,VKPRAITING,VKPVERSCHL,VKPKREDBIS,VKPKREDVON,VKPLUEBKZ,VKPFRDAT,VKPFRZEIT,VKPFRBENID,VKPFRKZ,VKPCUSIGNED,VKPSTPROV,VKPSTFRACHT,VKPSTFRME,VKPSTIMP,VKPSTVERS,VKPSTZOLL,VKPFRGRENZ,VKPFRGRME,VKPVERSGRENZ,VKPZTARIF,VKPEDIKZ,VKPKOMMNR,VKPKOMMPOS,VKPEDIDAT,VKPEDIZEIT,VKPURBESTPOS,VKPVERTRNRK,VKPVERTRPOSK,VKPOPREIS,VKPOMENGE,VKPWUTERMKO,VKPKZERSATZ,VKPBUSIMODE,VKPEXMANDANT,VKPRUECKTG,VKPLIEFTERMN,VKPVERARBSTA,VKPCTO,VKPVTRNRK2,VKPVTRPOSK2,VKPAENTIME,VKPMAINPROG,VKPSAMPTYP,VKPUSRSTA,VKPACCVERS,VKPLIART,VKPDELTAE,VKPLIART2,VKPDELTAE2,VKPLIART3,VKPDELTAE3,VKPLINKMARK,VKPKREDNL,VKPEINSATZG,VKPVERWEND,VKPQSDOK,VKPABGABE,VKPHK,VKPGSPH,VKPMMIN,VKPFILLER2)"
                    + " V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:,:VKPVERST3:,:VKPVERST4:,:VKPEINTT1:,:VKPEINTT2:,:VKPEINTT3:,:VKPEINTT4:,:VKPOFFENT1:,:VKPOFFENT2:,:VKPOFFENT3:,:VKPOFFENT4:,:VKPWVTERM:,:VKPWUTERM:,:VKPFREITERM:,:VKPVERSTERM:,:VKPLIEFTERM:,:VKPLIEFEING:,:VKPEINTTERM:,:VKPEINTEING:,:VKPVERZEING1:,:VKPVERZTERM1:,:VKPBESTTERM1:,:VKPVERZEING2:,:VKPVERZTERM2:,:VKPBESTTERM2:,:VKPVERZEING3:,:VKPVERZTERM3:,:VKPBESTTERM3:,:VKPVERZEING4:,:VKPVERZTERM4:,:VKPBESTTERM4:,:VKPVERZEING5:,:VKPVERZTERM5:,:VKPBESTTERM5:,:VKPLVDAT:,:VKPEINTVON:,:VKPVALUTA:,:VKPVALDAT:,:VKPLIEFZEIT:,:VKPLZEIT:,:VKPSTORDAT:,:VKPNACHL:,:VKPVERTKZ:,:VKPVKNPOS:,:VKPLTERMIN1:,:VKPLTART1:,:VKPMENGEP1:,:VKPLTERMIN2:,:VKPLTART2:,:VKPMENGEP2:,:VKPLTERMIN3:,:VKPLTART3:,:VKPMENGEP3:,:VKPLTERMIN4:,:VKPLTART4:,:VKPMENGEP4:,:VKPLTERMIN5:,:VKPLTART5:,:VKPMENGEP5:,:VKPSHOE:,:VKPSLAE:,:VKPOPTRLAE:,:VKPOPTART:,:VKPSPUL:,:VKPSPULG:,:VKPSPULGV:,:VKPSPULGB:,:VKPSPULM:,:VKPSPULMV:,:VKPSPULMB:,:VKPSPUL2:,:VKPSPULG2:,:VKPHUELSE:,:VKPKF:,:VKPFDRES:,:VKPWI:,:VKPSCHLICHTGR:,:VKPSCHLICHTNR:,:VKPHABR:,:VKPVABR:,:VKPSETKZ:,:VKPPRGRP:,:VKPLFDNR:,:VKPARTPRGR:,:VKPCOUPON:,:VKPPREIS:,:VKPPREH:,:VKPPREHGRP:,:VKPPREHFKT:,:VKPPRKZ:,:VK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E3:,:VKPLINKMARK:,:VKPKREDNL:,:VKPEINSATZG:,:VKPVERWEND:,:VKPQSDOK:,:VKPABGABE:,:VKPHK:,:VKPGSPH:,:VKPMMIN:,:VKPFILLER2:)";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    break;
                default:
                case "YGR":
                case "SXN":
                case "TST":
                    or1.CommandText = "INSERT INTO VKPOS(VKPMANDANT, VKPSA, VKPAUFKRS, VKPAUFLFD, VKPAUFPOS, VKPAENDST, VKPAENDZL, VKPAENDBEN, VKPAENDDAT, VKPNEUBEN, VKPNEUDAT, VKPPAENDDAT, VKPPAENPROG, VKPAESTAT, VKPVB, VKPVG, VKPKUNDNR, VKPAUFART, VKPSACHBE, VKPPOSTYP, VKPABWERT, VKPMUSTER, VKPABVK, VKPEIL, VKPEZEIT, VKPERL, VKPERLDAT, VKPERLBEN, VKPPRODST, VKPARTST, VKPKOLL, VKPART, VKPFARBE, VKPGROE, VKPZENSUR, VKPAUFMART, VKPVERPART, VKPKURZBEZ, VKPKKOLL, VKPKDARTNR, VKPKDBEZ, VKPKDFARBNR, VKPPRGR, VKPARTGRP, VKPDSACHB, VKPZIELGR, VKPMENGE1, VKPMENGE2, VKPRESERV, VKPZUGET, VKPFREIGE, VKPGAUFBEST, VKPKOMMISS, VKPFAKT, VKPVERS, VKPEINGET, VKPOFFEN, VKPMEEH, VKPMEEHGRP, VKPMEEHFKT, VKPMENGE1T1, VKPMENGE1T2, VKPMENGE1T3, VKPMENGE1T4, VKPRESERVT1, VKPRESERVT2, VKPRESERVT3, VKPRESERVT4, VKPZUGETT1, VKPZUGETT2, VKPZUGETT3, VKPZUGETT4, VKPFREIGET1, VKPFREIGET2, VKPFREIGET3, VKPFREIGET4, VKPGAUFBESTT1, VKPGAUFBESTT2, VKPGAUFBESTT3, VKPGAUFBESTT4, VKPKOMMIST1, VKPKOMMIST2, VKPKOMMIST3, VKPKOMMIST4, VKPFAKTT1, VKPFAKTT2, VKPFAKTT3, VKPFAKTT4, VKPVERST1, VKPVERST2, VKPVERST3, VKPVERST4, VKPEINTT1, VKPEINTT2, VKPEINTT3, VKPEINTT4, VKPOFFENT1, VKPOFFENT2, VKPOFFENT3, VKPOFFENT4, VKPWVTERM, VKPWUTERM, VKPFREITERM, VKPVERSTERM, VKPLIEFTERM, VKPLIEFEING, VKPEINTTERM, VKPEINTEING, VKPVERZEING1, VKPVERZTERM1, VKPBESTTERM1, VKPVERZEING2, VKPVERZTERM2, VKPBESTTERM2, VKPVERZEING3, VKPVERZTERM3, VKPBESTTERM3, VKPVERZEING4, VKPVERZTERM4, VKPBESTTERM4, VKPVERZEING5, VKPVERZTERM5, VKPBESTTERM5, VKPLVDAT, VKPEINTVON, VKPVALUTA, VKPVALDAT, VKPLIEFZEIT, VKPLZEIT, VKPSTORDAT, VKPNACHL, VKPVERTKZ, VKPVKNPOS, VKPLTERMIN1, VKPLTART1, VKPMENGEP1, VKPLTERMIN2, VKPLTART2, VKPMENGEP2, VKPLTERMIN3, VKPLTART3, VKPMENGEP3, VKPLTERMIN4, VKPLTART4, VKPMENGEP4, VKPLTERMIN5, VKPLTART5, VKPMENGEP5, VKPSHOE, VKPSLAE, VKPOPTRLAE, VKPOPTART, VKPSPUL, VKPSPULG, VKPSPULGV, VKPSPULGB, VKPSPULM, VKPSPULMV, VKPSPULMB, VKPSPUL2, VKPSPULG2, VKPHUELSE, VKPKF, VKPFDRES, VKPWI, VKPSCHLICHTGR, VKPSCHLICHTNR, VKPHABR, VKPVABR, VKPSETKZ, VKPPRGRP, VKPLFDNR, VKPARTPRGR, VKPCOUPON, VKPPREIS, VKPPREH, VKPPREHGRP, VKPPREHFKT, VKPPRKZ, VKPPREISPRF, VKPUGSACHB, VKPPRLPREIS, VKPPREISUG, VKPKONFEKT, VKPPOSWERT, VKPSTAFFELF, VKPVGUET, VKPSONDERP, VKPINDEXNA1, VKPINDEXBA1, VKPINDEXWE1, VKPINDEXHS1, VKPINDEXNA2, VKPINDEXBA2, VKPINDEXWE2, VKPINDEXHS2, VKPINDEXNA3, VKPINDEXBA3, VKPINDEXWE3, VKPINDEXHS3, VKPKOAUFKRS, VKPKOAUFLFD, VKPKOAUFPOS, VKPKOAUFART, VKPARTPRF, VKPKZFREI, VKPFARBGRP, VKPARTUG, VKPFARBEUG, VKPARTOG, VKPFARBEOG, VKPIAEDAT, VKPEMENGEV, VKPEMENGEB, VKPPMENGE, VKPVERTEIL, VKPWDECK, VKPKANR, VKPKAPOS, VKPABLGRD, VKPGELISTET, VKPKONKURENT, VKPKPREIS, VKPHOCHRECH, VKPERFOLG, VKPANT, VKPANTSAV, VKPSIGNED, VKPABS, VKPABRKZ, VKPNOCOUNT, VKPEXAUFKRS, VKPEXAUFLFD, VKPEXAUFPOS, VKPEXART, VKPEXVAR, VKPEXDESS, VKPEXCOLORIT, VKPRAPLG, VKPRAPWDT, VKPGESSTA, VKPARTSTA, VKPPRSTA, VKPBSTSTA, VKPTERMSTA, VKPMGV, VKPMGB, VKPMGZU, VKPSTV, VKPSTB, VKPSTZU, VKPSTLGV, VKPSTLGB, VKPPAS, VKPPAI, VKPTSTS, VKPTSTI, VKPTSTLG, VKPTSTMAX, VKPUBLI, VKPAZUTEIL, VKPERSART, VKPZUTART, VKPZSBER, VKPFA, VKPGA, VKPQA, VKPMAART, VKPMAFZST, VKPZUSAM, VKPZUDOPA, VKPZUDPA, VKPGENEHM, VKPMUVERT, VKPZRUECK, VKPZKDAT, VKPZKBEN, VKPSTKNEUTR, VKPPARTGL, VKPKONFKZ, VKPKETTELN, VKPRESSACHB, VKPLAEVON, VKPLAEBIS, VKPSTDLAE, VKPSFERTKZ, VKPREGEL, VKPZUTPRIO, VKPSTAFFNR, VKPMAXPKT, VKPANZ1, VKPLAENGE1, VKPBREITE1, VKPANZ2, VKPLAENGE2, VKPBREITE2, VKPANZ3, VKPLAENGE3, VKPBREITE3, VKPANZ4, VKPLAENGE4, VKPBREITE4, VKPANZ5, VKPLAENGE5, VKPBREITE5, VKPFIXMASS, VKPURLAND, VKPPRFBEG, VKPPRFVKD, VKPEINWERK, VKPWERK, VKPQPKTH, VKPQPKTLH, VKPRICHGL, VKPWSCHTXT, VKPFILLER1, VKPABRUF, VKPLIEFKOMP, VKPVERSART, VKPZUSATZ, VKPKDKOMM, VKPLTEILNR, VKPVERSLO, VKPAUTOFREI, VKPSTRECKE, VKPANGETEXT, VKPANGEWIE, VKPBESTTEXT, VKPBESTWIE, VKPLIEFTEXT, VKPLIEFWIE, VKPRECHTEXT, VKPRECHWIE, VKPLVORTEXT, VKPLVORWIE, VKPIVVTTEXT, VKPIVVTWIE, VKPIVDITEXT, VKPIVDIWIE, VKPARTTEXT, VKPANGEALLG, VKPBESTALLG, VKPLIEFALLG, VKPRECHALLG, VKPLVORALLG, VKPIVVTALLG, VKPIVDIALLG, VKPANL1TXT, VKPANL2TXT, VKPANL3TXT, VKPAGT, VKPAUF1, VKPAUF2, VKPAUF3, VKPDISPO, VKPDDBENID, VKPDDAUFTNR, VKPEKOLL, VKPEART, VKPEFARBE, VKPLVERD, VKPWOBST, VKPEAKZ, VKPWAEHRSL, VKPKURS, VKPBETRAG, VKPHWAEHRSL, VKPHEUROKURS, VKPHEUROKURSVK, VKPFEUROKURS, VKPFEUROKURSVK, VKPTERMNR, VKPFAELLIG, VKPSICHER, VKPSICHP, VKPAKKRED, VKPBESTPOS, VKPDBLATT, VKPTBRIEF, VKPARTBILD, VKPFORMAT, VKPZEUGNIS, VKPPLANKRS, VKPPLANLFD, VKPRES1, VKPRES2, VKPVKZUABVH, VKPVKZUSAMP, VKPVKZUADR, VKPFKSPKZ, VKPFKSPRD, VKPFKSPTD, VKPKREDLIM, VKPSWING, VKPRAITING, VKPVERSCHL, VKPKREDBIS, VKPKREDVON, VKPLUEBKZ, VKPFRDAT, VKPFRZEIT, VKPFRBENID, VKPFRKZ, VKPCUSIGNED, VKPSTPROV, VKPSTFRACHT, VKPSTFRME, VKPSTIMP, VKPSTVERS, VKPSTZOLL, VKPFRGRENZ, VKPFRGRME, VKPVERSGRENZ, VKPZTARIF, VKPEDIKZ, VKPKOMMNR, VKPKOMMPOS, VKPEDIDAT, VKPEDIZEIT, VKPURBESTPOS, VKPVERTRNRK, VKPVERTRPOSK, VKPOPREIS, VKPOMENGE, VKPWUTERMKO, VKPKZERSATZ, VKPBUSIMODE, VKPEXMANDANT, VKPRUECKTG, VKPLIEFTERMN, VKPVERARBSTA, VKPCTO, VKPVTRNRK2, VKPVTRPOSK2, VKPAENTIME, VKPMAINPROG, VKPSAMPTYP, VKPUSRSTA, VKPACCVERS, VKPLIART, VKPDELTAE, VKPLIART2, VKPDELTAE2, VKPLIART3, VKPDELTAE3, VKPLINKMARK, VKPKREDNL, VKPEINSATZG, VKPVERWEND, VKPQSDOK, VKPABGABE, VKPHK1, VKPHK2, VKPHK3, VKPHK4, VKPHK5, VKPHK6, VKPHK7, VKPHK8, VKPHK9, VKPHK10, VKPGSPH, VKPMMIN, VKPFILLER2)"
                        + "VALUES(:VKPMANDANT:,:VKPSA:,:VKPAUFKRS:,:VKPAUFLFD:,:VKPAUFPOS:,:VKPAENDST:,:VKPAENDZL:,:VKPAENDBEN:,:VKPAENDDAT:,:VKPNEUBEN:,:VKPNEUDAT:,:VKPPAENDDAT:,:VKPPAENPROG:,:VKPAESTAT:,:VKPVB:,:VKPVG:,:VKPKUNDNR:,:VKPAUFART:,:VKPSACHBE:,:VKPPOSTYP:,:VKPABWERT:,:VKPMUSTER:,:VKPABVK:,:VKPEIL:,:VKPEZEIT:,:VKPERL:,:VKPERLDAT:,:VKPERLBEN:,:VKPPRODST:,:VKPARTST:,:VKPKOLL:,:VKPART:,:VKPFARBE:,:VKPGROE:,:VKPZENSUR:,:VKPAUFMART:,:VKPVERPART:,:VKPKURZBEZ:,:VKPKKOLL:,:VKPKDARTNR:,:VKPKDBEZ:,:VKPKDFARBNR:,:VKPPRGR:,:VKPARTGRP:,:VKPDSACHB:,:VKPZIELGR:,:VKPMENGE1:,:VKPMENGE2:,:VKPRESERV:,:VKPZUGET:,:VKPFREIGE:,:VKPGAUFBEST:,:VKPKOMMISS:,:VKPFAKT:,:VKPVERS:,:VKPEINGET:,:VKPOFFEN:,:VKPMEEH:,:VKPMEEHGRP:,:VKPMEEHFKT:,:VKPMENGE1T1:,:VKPMENGE1T2:,:VKPMENGE1T3:,:VKPMENGE1T4:,:VKPRESERVT1:,:VKPRESERVT2:,:VKPRESERVT3:,:VKPRESERVT4:,:VKPZUGETT1:,:VKPZUGETT2:,:VKPZUGETT3:,:VKPZUGETT4:,:VKPFREIGET1:,:VKPFREIGET2:,:VKPFREIGET3:,:VKPFREIGET4:,:VKPGAUFBESTT1:,:VKPGAUFBESTT2:,:VKPGAUFBESTT3:,:VKPGAUFBESTT4:,:VKPKOMMIST1:,:VKPKOMMIST2:,:VKPKOMMIST3:,:VKPKOMMIST4:,:VKPFAKTT1:,:VKPFAKTT2:,:VKPFAKTT3:,:VKPFAKTT4:,:VKPVERST1:,:VKPVERST2:,:VKPVERST3:,:VKPVERST4:,:VKPEINTT1:,:VKPEINTT2:,:VKPEINTT3:,:VKPEINTT4:,:VKPOFFENT1:,:VKPOFFENT2:,:VKPOFFENT3:,:VKPOFFENT4:,:VKPWVTERM:,:VKPWUTERM:,:VKPFREITERM:,:VKPVERSTERM:,:VKPLIEFTERM:,:VKPLIEFEING:,:VKPEINTTERM:,:VKPEINTEING:,:VKPVERZEING1:,:VKPVERZTERM1:,:VKPBESTTERM1:,:VKPVERZEING2:,:VKPVERZTERM2:,:VKPBESTTERM2:,:VKPVERZEING3:,:VKPVERZTERM3:,:VKPBESTTERM3:,:VKPVERZEING4:,:VKPVERZTERM4:,:VKPBESTTERM4:,:VKPVERZEING5:,:VKPVERZTERM5:,:VKPBESTTERM5:,:VKPLVDAT:,:VKPEINTVON:,:VKPVALUTA:,:VKPVALDAT:,:VKPLIEFZEIT:,:VKPLZEIT:,:VKPSTORDAT:,:VKPNACHL:,:VKPVERTKZ:,:VKPVKNPOS:,:VKPLTERMIN1:,:VKPLTART1:,:VKPMENGEP1:,:VKPLTERMIN2:,:VKPLTART2:,:VKPMENGEP2:,:VKPLTERMIN3:,:VKPLTART3:,:VKPMENGEP3:,:VKPLTERMIN4:,:VKPLTART4:,:VKPMENGEP4:,:VKPLTERMIN5:,:VKPLTART5:,:VKPMENGEP5:,:VKPSHOE:,:VKPSLAE:,:VKPOPTRLAE:,:VKPOPTART:,:VKPSPUL:,:VKPSPULG:,:VKPSPULGV:,:VKPSPULGB:,:VKPSPULM:,:VKPSPULMV:,:VKPSPULMB:,:VKPSPUL2:,:VKPSPULG2:,:VKPHUELSE:,:VKPKF:,:VKPFDRES:,:VKPWI:,:VKPSCHLICHTGR:,:VKPSCHLICHTNR:,:VKPHABR:,:VKPVABR:,:VKPSETKZ:,:VKPPRGRP:,:VKPLFDNR:,:VKPARTPRGR:,:VKPCOUPON:,:VKPPREIS:,:VKPPREH:,:VKPPREHGRP:,:VKPPREHFKT:,:VKPPRKZ:,:VKPPREISPRF:,:VKPUGSACHB:,:VKPPRLPREIS:,:VKPPREISUG:,:VKPKONFEKT:,:VKPPOSWERT:,:VKPSTAFFELF:,:VKPVGUET:,:VKPSONDERP:,:VKPINDEXNA1:,:VKPINDEXBA1:,:VKPINDEXWE1:,:VKPINDEXHS1:,:VKPINDEXNA2:,:VKPINDEXBA2:,:VKPINDEXWE2:,:VKPINDEXHS2:,:VKPINDEXNA3:,:VKPINDEXBA3:,:VKPINDEXWE3:,:VKPINDEXHS3:,:VKPKOAUFKRS:,:VKPKOAUFLFD:,:VKPKOAUFPOS:,:VKPKOAUFART:,:VKPARTPRF:,:VKPKZFREI:,:VKPFARBGRP:,utl_raw.cast_to_raw(:VKPART:),utl_raw.cast_to_raw(:VKPFARBE:),utl_raw.cast_to_raw(:VKPART:),utl_raw.cast_to_raw(:VKPFARBE:),:VKPIAEDAT:,:VKPEMENGEV:,:VKPEMENGEB:,:VKPPMENGE:,:VKPVERTEIL:,:VKPWDECK:,:VKPKANR:,:VKPKAPOS:,:VK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RDAT:,:VKPFRZEIT:,:VKPFRBENID:,:VKPFRKZ:,:VKPCUSIGNED:,:VKPSTPROV:,:VKPSTFRACHT:,:VKPSTFRME:,:VKPSTIMP:,:VKPSTVERS:,:VKPSTZOLL:,:VKPFRGRENZ:,:VKPFRGRME:,:VKPVERSGRENZ:,:VKPZTARIF:,:VKPEDIKZ:,:VKPKOMMNR:,:VKPKOMMPOS:,:VKPEDIDAT:,:VKPEDIZEIT:,:VKPURBESTPOS:,:VKPVERTRNRK:,:VKPVERTRPOSK:,:VKPOPREIS:,:VKPOMENGE:,:VKPWUTERMKO:,:VKPKZERSATZ:,:VKPBUSIMODE:,:VKPEXMANDANT:,:VKPRUECKTG:,:VKPLIEFTERMN:,:VKPVERARBSTA:,:VKPCTO:,:VKPVTRNRK2:,:VKPVTRPOSK2:,:VKPAENTIME:,:VKPMAINPROG:,:VKPSAMPTYP:,:VKPUSRSTA:,:VKPACCVERS:,:VKPLIART:,:VKPDELTAE:,:VKPLIART2:,:VKPDELTAE2:,:VKPLIART3:,:VKPDELTAE3:,:VKPLINKMARK:,:VKPKREDNL:,:VKPEINSATZG:,:VKPVERWEND:,:VKPQSDOK:,:VKPABGABE:,:VKPHK1:,:VKPHK2:,:VKPHK3:,:VKPHK4:,:VKPHK5:,:VKPHK6:,:VKPHK7:,:VKPHK8:,:VKPHK9:,:VKPHK10:,:VKPGSPH:,:VKPMMIN:,:VKPFILLER2:)";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    break;
            }
            Connect2Proxy(or1);
        }

        public DataSet QueryVKPOS(DataRow dwData, int option = 1)
        {
            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                #region
                case 0: SResult = QVKP00(dwData); break;
                case 1: SResult = QVKP01(dwData); break;
                case 2: SResult = QVKP02(dwData); break;
                case 3: SResult = QVKP03(dwData); break;
                case 4: SResult = QVKP04(dwData); break;
                case 5: SResult = QVKP05(dwData); break;
                case 6: SResult = QVKP06(dwData); break;
                case 7: SResult = QVKP07(dwData); break;
                case 8: SResult = QVKP08(dwData); break;
                case 9: SResult = QVKP09(dwData); break;
                case 10: SResult = QVKP10(dwData); break;
                case 11: SResult = QVKP11(dwData); break;
                case 110: SResult = QVKP110(dwData); break;
                case 12: SResult = QVKP12(dwData); break;
                case 13: SResult = QVKP13(dwData); break;
                case 14: SResult = QVKP14(dwData); break;
                case 15: SResult = QVKP15(dwData); break;
                case 16: SResult = QVKP16(dwData); break;
                case 17: SResult = QVKP17(dwData); break;
                case 18: SResult = QVKP18(dwData); break;
                case 19: SResult = QVKP19(dwData); break;
                case 20: SResult = QVKP20(dwData); break;
                case 21: SResult = QVKP21(dwData); break;
                case 22: SResult = QVKP22(dwData); break;
                case 23: SResult = QVKP23(dwData); break;
                case 24: SResult = QVKP24(dwData); break;
                case -2: SResult = QVKP_2(dwData); break;
                case -3: SResult = QVKP_3(dwData); break;
                case -4: SResult = QVKP_4(dwData); break;
                case -5: SResult = QVKP_5(dwData); break;
                default: SResult = QVKP99(dwData); break;
                    #endregion
            }
            return SResult;
        }
        public DataSet QVKP00(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,* FROM VKPOS WHERE  ROWNUM<2 ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP01(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,P.* FROM VKPOS P "
                       + " WHERE  VKPMANDANT=:VKPMANDANT: AND (VKPSA ='  '  OR VKPSA='IN') AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP02(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,LSLIEFNA,P.* , "
                + " (SELECT STRAGG(DISTINCT TO_NUMBER(VVTLIEFSCH)) FROM VVTLIEF WHERE VVTAUFTYP = 'K' AND VVTAUFKRS =P.VKPAUFKRS  AND VVTAUFLFD =P.VKPAUFLFD AND VVTAUFPOS =P.VKPAUFPOS AND VVTMTR>0) AS DELNO "
                + " FROM VKPOS P"
                + " JOIN VAART ON VAAMANDANT=VKPMANDANT AND VAAART=VKPART AND VAAKOLL=VKPKOLL" 
                + " LEFT JOIN WASTAMM ON WAMANDANT=VAAMANDANT AND WADART=VAADART AND WADVAR=VAADVAR "
                + " LEFT JOIN LIEFDAT ON LSMANDANT=WAMANDANT AND LSLIEFNR=WALIEFNR"
                + " WHERE VKPMANDANT=:VKPMANDANT: AND (VKPSA ='  '  OR VKPSA='IN')  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: "
            +" ORDER BY VKPAUFKRS,VKPAUFLFD,VKPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP03(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPMANDANT,KDNAME1,VKKORDER,VKKBESTNR,VKKBESTDAT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPAUFART,VKPKOAUFKRS,VKPKOAUFLFD,VKPKOAUFPOS,VKPKOAUFART"
                        + ",VKPSA,VKPEZEIT,VKPAENDBEN,VKPAUFMART,VKPVERPART,VKPZUDOPA"
                        + ",SUBSTR(VKPKDBEZ,0,10) AS STRENGTH,SUBSTR(VKPKDBEZ,11,10) AS TWIST,SUBSTR(VKPZUSATZ,0,7) AS OVERSHORT,SUBSTR(VKPZUSATZ,8) AS COLORSTD,SUBSTR(VKPKDBEZ,21,10) AS YARNTYP"
                        + ",VKPAENDDAT,VKPNEUBEN,VKPNEUDAT,VKPPOSTYP,VKPARTST,VKPTSTLG,VKPSTLGB,VKPSTLGV"
                        + ",VKPKOLL,VKPART,VKPFARBE,VAABEZ,VAAKURZBEZ,VKPKDFARBNR,VKPMGB,VKPMGV"
                        + ",SUBSTR(X.SDDATEN,2,20) AS ARTGRP"
                        + ",VKPVERPART||':'||SUBSTR(M.SDDATEN,2,10) AS VKPVERPART,VKPAUFMART||':'||SUBSTR(P.SDDATEN,2,10) AS VKPVERPART"
                        + ",VKPKDARTNR,VKPKDBEZ,VKPMENGE1,VKPZUGET,VKPRESERV,VKPFREIGE,VKPMEEH,VKPMEEHFKT"
                        + ",VKPMENGE1T1,VKPMENGE1T2,VKPLIEFTERM,VKPVB,VKPPREH,VKPPREIS,VKPWUTERM,VKPWVTERM,VKPPOSWERT"
                        + ",VKPZUSATZ,KDKUNDNA,KDKNAME,KDNAME1,'   ' as CONSTRUCTION,'               ' AS REMARK,'                ' as REPEATORDER,0 as PREALLOCATED "
                        + " FROM VKPOS P JOIN VKKOPF ON   VKKMANDANT=VKPMANDANT AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD"
                        + " LEFT JOIN VAART  ON VAAMANDANT=VKPMANDANT AND VAAKOLL=VKPKOLL AND VAAART=VKPART"
                        + " LEFT JOIN VAFARBEN ON VAFMANDANT=VKPMANDANT AND VAFKOLL=VKPKOLL AND VKPART=VAFART AND VAFFFARBE=VKPFARBE"
                        + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
                        + " LEFT JOIN SDDAT X ON X.SDSA='0178' AND VAAARTGRP= SUBSTR(X.SDKEY,3,3) AND SUBSTR(X.SDKEY,24,1) = 'V'"
                        + " LEFT JOIN SDDAT M ON VKPMANDANT = SUBSTR(M.SDKEY,1,2)  AND VKPAUFMART = SUBSTR(M.SDKEY,3,3) AND M.SDSA = '0114' AND SUBSTR(M.SDKEY,24,1) = 'V'"
                        + "LEFT JOIN SDDAT P ON VKPMANDANT = SUBSTR(P.SDKEY,1,2)  AND VKPVERPART = SUBSTR(P.SDKEY,3,3) AND P.SDSA = '0209' AND SUBSTR(P.SDKEY,24,1) = 'V'"
                        + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA='  ' AND VKKSA = '  ' AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD:"
                        + " ORDER BY VKPAUFKRS,VKPAUFLFD,VKPAUFPOS ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP04(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPNEUDAT,KDKUNDNA,VKPKOLL,VAAPRGR,VKPAUFKRS||VKPAUFLFD AS VKPNUM,VAABEZ,VKPMENGE1,VKPWUTERM,VKPNEUBEN,VKPLIEFTERM,VKPPOSTYP"
                       + " FROM VKPOS P LEFT JOIN VAART A ON P.VKPART=VAAART  LEFT JOIN KDSTAMM ON VKPKUNDNR= KDKUNDNR"
                       + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA='  ' AND VKPAUFKRS=:VKPAUFKRS: AND VKPNEUDAT>=:VKPNEUDAT: ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP05(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,P.* FROM VKPOS P WHERE  "
                      + "  VKPMANDANT=:VKPMANDANT: AND VKPSA ='  '  AND VKPART=:VKPART: AND VKPFARBE=:VKPFARBE:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);

            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP06(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,P.* FROM VKPOS P WHERE  "
                       + "  VKPMANDANT=:VKPMANDANT: AND VKPSA ='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);

            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP07(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPPOSTYP,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPNEUDAT,VKKBESTNR,VKPKDKOMM,VKKGESMENGE1 AS VKKMENGE1,VKKKUNDNR,KDKUNDNA,KDNAME1,KDLAND,KDPLZ,KDORT,KDBZ,KDSTRASSE1,VKPART,'              ' AS VKCOM,VKPFARBE,VKPKDFARBNR,VKPKOLL,VAAPRGR,VKPKDFARBNR,SUBSTR(VKPKDBEZ,0,10) AS STRENGTH,SUBSTR(VKPKDBEZ,11,10) AS TWIST,SUBSTR(VKPZUSATZ,0,7) AS OVERSHORT,SUBSTR(VKPZUSATZ,8) AS COLORSTD,VKPMENGE1*0.01 AS VKPMENGE1,VKPRESERV*0.01 AS QTYRESERVE,(VKPRESERV+VKPZUGET)*0.01 AS QTYPLAN, (VKPMENGE1-VKPZUGET)*0.01 AS QTYDIFF,CASE WHEN (VKPMENGE1-VKPZUGET)>0 THEN 'Y' ELSE 'N' END AS ISDIFF, VKPMEEH,VKPLIEFTERM,0 AS STOCKQTY,VKPZUGET*0.01 AS VKPZUGET,VKPFREIGE*0.01 AS VKPFREIGE, VKPPREIS*0.001 AS VKPPREISX,VKKHWAEHRSL||'/'||VKPPREH AS PUM,VKPERL,VKPERLDAT,VKPERLBEN, CASE VKPERL WHEN 'J' THEN ceil((To_date( VKPERLDAT, 'yyyymmdd') - To_date(VKPLIEFTERM , 'yyyymmdd'))) ELSE 0 END   AS DELAYDAYS, CASE VKPERL WHEN 'J' THEN CASE WHEN ceil((To_date( VKPERLDAT, 'yyyymmdd') - To_date(VKPLIEFTERM , 'yyyymmdd')))>0 THEN 'Y'    ELSE 'N' END   ELSE ' '  END  AS ISDELAY FROM VKPOS P JOIN VKKOPF K ON VKPAUFKRS=VKKAUFKRS AND VKPAUFLFD=VKKAUFLFD JOIN KDSTAMM ON KDKUNDNR=VKKKUNDNR JOIN VAART ON VAAART=VKPART AND VAAKOLL=VKPKOLL"
                          + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA ='  '  AND VKPERL=:VKPERL: AND VKKAUFART=:VKKAUFART: AND VKPLIEFTERM<=:DEND:"
                      + " ORDER BY VKKKUNDNR,VKPLIEFTERM";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);

            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP08(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPPOSTYP,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPNEUDAT,VKKBESTNR,VKKBESTDAT,VKKGLTBIS,VKPKDKOMM,VKKGESMENGE1 AS VKKMENGE1,VKKKUNDNR,KDKUNDNA,KDLAND,KDPLZ,KDORT,KDBZ,KDSTRASSE1,KDNAME1,VKPART,'              ' AS VKCOM,VKPFARBE,VKPKDFARBNR,VKPKOLL,VAAPRGR,VKPKDFARBNR,SUBSTR(VKPKDBEZ,0,10) AS STRENGTH,SUBSTR(VKPKDBEZ,11,10) AS TWIST,SUBSTR(VKPZUSATZ,0,7) AS OVERSHORT,SUBSTR(VKPZUSATZ,8) AS COLORSTD,VKPMENGE1*0.01 AS VKPMENGE1,VKPRESERV*0.01 AS QTYRESERVE,(VKPRESERV+VKPZUGET)*0.01 AS QTYPLAN,(VKPMENGE1-VKPZUGET)*0.01 AS QTYDIFF,CASE WHEN (VKPMENGE1-VKPZUGET)>0 THEN 'Y' ELSE 'N' END AS ISDIFF, VKPMEEH,VKPLIEFTERM,0 AS STOCKQTY,VKPZUGET*0.01 AS VKPZUGET,VKPFREIGE*0.01 AS VKPFREIGE, VKPPREIS*0.001 AS VKPPREISX,VKKHWAEHRSL||'/'||VKPPREH AS PUM,VKPERL,VKPERLDAT,VKPERLBEN, CASE VKPERL WHEN 'J' THEN ceil((To_date( VKPERLDAT, 'yyyymmdd') - To_date(VKPLIEFTERM , 'yyyymmdd'))) ELSE 0 END   AS DELAYDAYS, CASE VKPERL WHEN 'J' THEN CASE WHEN ceil((To_date( VKPERLDAT, 'yyyymmdd') - To_date(VKPLIEFTERM , 'yyyymmdd')))>0 THEN 'Y'    ELSE 'N' END   ELSE ' '  END  AS ISDELAY FROM VKPOS P JOIN VKKOPF K ON VKPAUFKRS=VKKAUFKRS AND VKPAUFLFD=VKKAUFLFD JOIN KDSTAMM ON KDKUNDNR=VKKKUNDNR JOIN VAART ON VAAART=VKPART AND VAAKOLL=VKPKOLL"
                              + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA='  ' AND VKPERL=:VKPERL: AND SUBSTR(VKPERLDAT,0,6)=RTRIM(:DMONTH:)  AND VKKAUFART=:VKKAUFART:"
                          + " ORDER BY VKKKUNDNR,VKPLIEFTERM";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);

            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP09(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VVLIEFSCH,VKKBESTNR,P.* FROM VKPOS P JOIN VKKOPF ON VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD JOIN VVTLIEF ON VVTAUFTYP='K' AND VKPSA='  ' AND VVTAUFKRS=VKPAUFKRS AND VVTAUFLFD=VKPAUFLFD AND VVTAUFPOS=VKPAUFPOS  JOIN VVLIEF ON VVLIEFSCH=VVTLIEFSCH"
                   + " WHERE VVMANDANT=:VVMANDANT: AND  VVLIEFSCH=:VVLIEFSCH:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP10(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPAUFKRS||VKPAUFLFD||VKPAUFPOS AS VKPNUM,VKPMANDANT AS ZUMANANDANT, VKPAUFKRS AS ZUAUFKRS,VKPAUFLFD AS ZUAUFLFD,VKPAUFPOS AS ZUAUFPOS,VKPMENGE1,VKPRESERV,VKPZUGET,VKPMENGE1-VKPZUGET AS VKPOFFEN FROM VKPOS WHERE  "
                         + "   VKPSA='  '  AND VKPERL=' '  AND VKPART=:VKPART: AND VKPFARBE=:VKPFARBE:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP11(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            string kd = dwData["VKPKUNDNR"].ToString().Trim();
            if (kd == "")
            {
                kd = " not in (' ')";
            }
            else
            {
                kd = " in ('" + kd + "')";
            }
            or1.CommandText = "SELECT DISTINCT ABAAUFKRS||'-'||ABAAUFLFD AS ABAUF,VKPKUNDNR,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL"
            + ",SUBSTR(VKPKDBEZ,0,10) AS STRENGTH,SUBSTR(VKPKDBEZ,11,10) AS TWIST,VKPZUSATZ,SUBSTR(VKPZUSATZ,0,7) AS OVERSHORT,SUBSTR(VKPZUSATZ,8) AS COLORSTD,SUBSTR(VKPKDBEZ,21,10) AS YARNTYP, GSGARNNR*0.0001||'/'||GSFACH AS YNE"
            + ",GAART,GAVAR,GAFARBE, nvl(ABACOLORREF,' ')  AS SPINLOT,VAABEZ AS VKCOM,VKKBESTNR,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,ABACOLORREF,ABADATE "
                + " FROM VKPOS M JOIN GAAUF ON VKPSA='  ' AND VKPMANDANT=GAMANDANT AND VKPAUFKRS=GAAUFKRS AND VKPAUFLFD=GAAUFLFD AND VKPAUFPOS=GAAUFPOS AND GASA=610"
            + " LEFT JOIN GSDAT G ON  GSART=GAART AND GSVAR=GAVAR"
            + " JOIN VKKOPF ON VKKSA='  ' AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
            + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
            + " LEFT JOIN ICC_ABAX X ON ABAVKAUFKRS=VKPAUFKRS AND ABAVKAUFLFD=VKPAUFLFD AND ABAVKAUFPOS=VKPAUFPOS"
            +" LEFT JOIN ABKOPF ON ABKMANDANT=VKPMANDANT AND ABKAUFKRS=X.ABAAUFKRS AND ABKAUFLFD=X.ABAAUFLFD"
            + " LEFT JOIN VAART ON VKPART=VAAART"
              + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA='  '  AND (VKPAUFKRS=:VKPAUFKRS: OR :VKPAUFKRS: = 'AA') AND VKPAUFLFD LIKE '%" + dwData["VKPAUFLFD"].ToString().Trim() + "%'"
              + " AND VKPKUNDNR " + kd + " AND SUBSTR(VKPKDBEZ,21,10) LIKE '" + dwData["VKPKDBEZ"].ToString().Trim() + "%'"
              + " AND nvl(GSGARNNR,'0')*0.0001||'/'||nvl(GSFACH,' ') LIKE '%" + dwData["VKPAENDST"].ToString().Trim() + "%'"
              + " AND nvl(ABACOLORREF,' ') LIKE '" + dwData["VKPART"].ToString().Trim() + "%'"
              + " AND VKPSACHBE LIKE '" + dwData["VKPSACHBE"].ToString().Trim() + "%'"
              + " AND VKKBESTNR LIKE '" + dwData["VKPFILLER2"].ToString().Trim() + "%'"
              + " AND VKPKDKOMM LIKE '" + dwData["VKPKDKOMM"].ToString().Trim() + "%'"
                 + dwData["VKPFARBE"].ToString()
               + dwData["VKPEXAUFLFD"].ToString()
             + " AND VKPLIEFTERM>=:VKPLIEFTERM:"
            + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP11AEX(DataRow dwData, int idx, int rows)
        {
            or1 = OracleDB.CreateCommand();
            string sql = QVKP11APG(dwData);
            or1.CommandText = "SELECT * FROM (SELECT X.*, ROWNUM RN FROM (" + sql + ") X WHERE  ROWNUM < " + (idx + 1) * rows
                + ")WHERE RN >= " + idx * rows;
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public string QVKP11APG(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            string kd = dwData["VKPKUNDNR"].ToString().Trim();
            if (kd == "")
            {
                kd = " not in (' ')";
            }
            else
            {
                kd = " in ('" + kd + "')";
            }
            or1.CommandText = "SELECT DISTINCT X.ABAAUFKRS||'-'||X.ABAAUFLFD AS ABAUF,MUK.ABKARTSB,VKPKUNDNR,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL,VKPWVTERM"
            + ",SUBSTR(VKPKDBEZ,0,10) AS STRENGTH,SUBSTR(VKPKDBEZ,11,10) AS TWIST,VKPZUSATZ,SUBSTR(VKPZUSATZ,0,7) AS OVERSHORT,SUBSTR(VKPZUSATZ,8) AS COLORSTD,SUBSTR(VKPKDBEZ,21,10) AS YARNTYP, GSGARNNR*0.0001||'/'||GSFACH AS YNE"
            + ",GAART,GAVAR,GAFARBE, nvl(X.ABACOLORREF,' ')  AS SPINLOT,VAABEZ AS VKCOM,VKKBESTNR,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,X.ABACOLORREF,X.ABADATE,NVL(P1,'  ') AS P01 "
                + " FROM VKPOS M JOIN GAAUF ON VKPSA='  ' AND VKPMANDANT=GAMANDANT AND VKPAUFKRS=GAAUFKRS AND VKPAUFLFD=GAAUFLFD AND VKPAUFPOS=GAAUFPOS AND GASA=610"
            + " LEFT JOIN GSDAT G ON  GSART=GAART AND GSVAR=GAVAR"
            + " JOIN VKKOPF ON VKKSA='  ' AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
            + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
            + " LEFT JOIN ICC_ABAX X ON X.ABAVKAUFKRS=VKPAUFKRS AND X.ABAVKAUFLFD=VKPAUFLFD AND X.ABAVKAUFPOS=VKPAUFPOS"
            + " LEFT JOIN ABKOPF K ON ABKMANDANT=VKPMANDANT AND ABKAUFKRS=X.ABAAUFKRS AND ABKAUFLFD=X.ABAAUFLFD"
              + " LEFT JOIN ABAUFM MU ON MU.ABAVKAUFKRS=VKPAUFKRS AND MU.ABAVKAUFLFD=VKPAUFLFD AND MU.ABAVKAUFPOS=VKPAUFPOS AND MU.ABAAUFKRS='FB'"
              + " LEFT JOIN ICC_PRULES ON SUBSTR(P4,1,11)=VKPAUFKRS||VKPAUFLFD||VKPAUFPOS AND COLOR='XS '"
            + " LEFT JOIN ABKOPF MUK ON MUK.ABKMANDANT=VKPMANDANT AND MUK.ABKAUFKRS=MU.ABAAUFKRS AND MUK.ABKAUFLFD=MU.ABAAUFLFD"
            + " LEFT JOIN VAART ON VKPART=VAAART"
              + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA='  '  AND (VKPAUFKRS=:VKPAUFKRS: OR :VKPAUFKRS: = 'AA') AND VKPAUFLFD LIKE '%" + dwData["VKPAUFLFD"].ToString().Trim() + "%'"
              + " AND VKPKUNDNR " + kd + " AND SUBSTR(VKPKDBEZ,21,10) LIKE '" + dwData["VKPKDBEZ"].ToString().Trim() + "%'"
              + " AND nvl(GSGARNNR,'0')*0.0001||'/'||nvl(GSFACH,' ') LIKE '%" + dwData["VKPAENDST"].ToString().Trim() + "%'"
              + " AND nvl(X.ABACOLORREF,' ') LIKE '" + dwData["VKPART"].ToString().Trim() + "%'"
              + " AND VKPSACHBE LIKE '" + dwData["VKPSACHBE"].ToString().Trim() + "%'"
              + " AND VKKBESTNR LIKE '" + dwData["VKPFILLER2"].ToString().Trim() + "%'"
              + " AND VKPKDKOMM LIKE '" + dwData["VKPKDKOMM"].ToString().Trim() + "%'"
                 + dwData["VKPFARBE"].ToString()
               + dwData["VKPEXAUFLFD"].ToString()
             + " AND VKPLIEFTERM>=:VKPLIEFTERM:"
            + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            return or1.CommandText;
        }

        public DataSet QVKP11A(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();         
            or1.CommandText = QVKP11APG(dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP110(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT   X.ABAAUFKRS||'-'||X.ABAAUFLFD AS ABAUF,MUK.ABKARTSB,VKPKUNDNR,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL,VKPWVTERM"
                       + ",SUBSTR(VKPKDBEZ,0,10) AS STRENGTH,SUBSTR(VKPKDBEZ,11,10) AS TWIST,SUBSTR(VKPZUSATZ,0,7) AS OVERSHORT,SUBSTR(VKPZUSATZ,8) AS COLORSTD,SUBSTR(VKPKDBEZ,21,10) AS YARNTYP, GSGARNNR*0.0001||'/'||GSFACH AS YNE"
                       + ",GAART,GAVAR,GAFARBE, nvl(ABACOLORREF,' ')  AS SPINLOT,'              ' AS VKCOM,VKKBESTNR,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,ABACOLORREF,ABADATE "
                           + " FROM VKPOS M JOIN GAAUF ON VKPSA='  ' AND VKPMANDANT=GAMANDANT AND VKPAUFKRS=GAAUFKRS AND VKPAUFLFD=GAAUFLFD AND VKPAUFPOS=GAAUFPOS AND GASA=610"
                       + " LEFT JOIN GSDAT G ON  GSART=GAART AND GSVAR=GAVAR"
                       + " JOIN VKKOPF ON VKKSA='  ' AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
                       + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
                       + " LEFT JOIN ABAUFM MU ON MU.ABAVKAUFKRS=VKPAUFKRS AND MU.ABAVKAUFLFD=VKPAUFLFD AND MU.ABAVKAUFPOS=VKPAUFPOS AND MU.ABAAUFKRS='FB'"
                       + " LEFT JOIN ABKOPF MUK ON MUK.ABKMANDANT=VKPMANDANT AND MUK.ABKAUFKRS=MU.ABAAUFKRS AND MUK.ABKAUFLFD=MU.ABAAUFLFD"
                       + " LEFT JOIN ICC_ABAX X ON X.ABAVKAUFKRS=VKPAUFKRS AND X.ABAVKAUFLFD=VKPAUFLFD AND X.ABAVKAUFPOS=VKPAUFPOS"
                         + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:"
                       + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP111(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT MU.ABAAUFKRS||MU.ABAAUFLFD AS ABAUF,MU.ABAAUFPOS,VKPKUNDNR,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL"
            + ",SUBSTR(VKPKDBEZ,0,10) AS STRENGTH,SUBSTR(VKPKDBEZ,11,10) AS TWIST,VKPZUSATZ,SUBSTR(VKPZUSATZ,0,7) AS OVERSHORT,SUBSTR(VKPZUSATZ,8) AS COLORSTD,SUBSTR(VKPKDBEZ,21,10) AS YARNTYP, GSGARNNR*0.0001||'/'||GSFACH AS YNE"
            + ",GAART,GAVAR,GAFARBE, nvl(ABACOLORREF,' ')  AS SPINLOT,'              ' AS VKCOM,VKKBESTNR,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,ABACOLORREF,MU.ABANEUDAT AS ABADATE "
                + " FROM VKPOS M JOIN GAAUF ON VKPSA='  ' AND VKPMANDANT=GAMANDANT AND VKPAUFKRS=GAAUFKRS AND VKPAUFLFD=GAAUFLFD AND VKPAUFPOS=GAAUFPOS AND GASA=610"
            + " LEFT JOIN GSDAT G ON  GSART=GAART AND GSVAR=GAVAR"
            + " JOIN VKKOPF ON VKKSA='  ' AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
            + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
            + " JOIN ICC_ABAX X ON X.ABAVKAUFKRS=VKPAUFKRS AND X.ABAVKAUFLFD=VKPAUFLFD AND X.ABAVKAUFPOS=VKPAUFPOS"
            + " JOIN ABAUFM MU ON MU.ABAVKAUFKRS=VKPAUFKRS AND MU.ABAVKAUFLFD=VKPAUFLFD AND MU.ABAVKAUFPOS=VKPAUFPOS"
             + " WHERE "
             + dwData["ABAVKAUFTYP"].ToString()
            + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP12(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPZUGET,VKPLIEFTERM,VKPPREIS,VKPPOSWERT,VKPERL FROM VKPOS WHERE  "
                + "  VKPMANDANT=:VKPMANDANT: AND VKPSA ='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP13(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            string kd = dwData["VKPKUNDNR"].ToString().Trim();
            if (kd == "")
            {
                kd = " not in (' ')";
            }
            else
            {
                kd = " in ('" + kd + "')";
            }
            or1.CommandText = "SELECT DISTINCT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPERL"
          + ",VKKBESTNR,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1"
                + " FROM VKPOS M "
            + " JOIN VKKOPF ON VKKSA='  ' AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
            + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
            + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA ='  '  AND VKPAUFKRS LIKE '" + dwData["VKPAUFKRS"].ToString().Trim() + "%' AND VKPAUFLFD LIKE '" + dwData["VKPAUFLFD"].ToString().Trim() + "%'"
            + " AND VKPART LIKE '" + dwData["VKPART"].ToString().Trim() + "%' AND VKPFARBE LIKE '" + dwData["VKPFARBE"].ToString().Trim() + "%'"
            + " AND VKPKUNDNR " + kd + " AND VKPSACHBE LIKE '" + dwData["VKPSACHBE"].ToString().Trim() + "%'"
             + " AND VKPLIEFTERM>=:VKPLIEFTERM:"
            + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP14(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT * FROM (SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,A.VKPAUFKRS,A.VKPAUFLFD,A.VKPAUFPOS, A.VKPAUFKRS||'-'||TO_NUMBER(A.VKPAUFLFD) AS ORDERNO,TO_NUMBER(A.VKPAUFPOS) AS ITEM, "
                      + " A.VKPNEUBEN,A.VKPNEUDAT,TO_NUMBER(A.VKPKUNDNR) AS BRANDCU,A.VKPSACHBE,TRIM(H.HRNNAME) AS SCHB, "
                      + " A.VKPPOSTYP,A.VKPKOLL,TRIM(A.VKPART) AS VKPART,TRIM(A.VKPFARBE) AS VKPFARBE,A.VKPMENGE1*0.01 AS QTY,VKPMEEH, "
                      + " SUM(TRUNC(A.VKPMENGE1*0.01*VKPMEEHFKT*0.000001))OVER(PARTITION BY A.VKPAUFKRS,A.VKPAUFLFD) AS MQTY, "
                      + " A.VKPPREIS*0.001 AS PRICS,A.VKPPREH,A.VKPWUTERM,A.VKPLIEFTERM,A.VKPKKOLL, "
                      + " NVL(A3.REMARK,A.VKPZUSATZ) AS REFERENCES,A.VKPKDKOMM,A.VKPWAEHRSL, "
                      + " B.VAAPRGR AS PRDGRP,(select substr(sddaten,2,20) "
                      + " from sddat where sdsa = '0196' and substr(sdkey,24,1)='V' "
                      + " and substr(sddaten,1,1)='A' and substr(sdkey,3,3) = B.VAAPRGR ) as PRDNAME, "
                      + " B.VAAARTGRP AS ARTGRP,(select substr(sddaten,2,20) "
                      + " from sddat where sdsa = '0178' and substr(sdkey,24,1)='V' "
                      + " and substr(sddaten,1,1)='A' and substr(sdkey,3,3) = B.VAAARTGRP ) as ARTNAME, "
                      + " B.VAATAX AS LABEL,(select substr(sddaten,2,20) "
                      + " from sddat where sdsa = '0568' and substr(sdkey,24,1)='V' "
                      + " and substr(sddaten,1,1)='A' and substr(sdkey,3,3) = B.VAATAX ) as LABELNAME, "
                      + " VAABUSIMODE AS BRAND,(select substr(sddaten,2,20) "
                      + " from sddat where sdsa = '0597' and substr(sdkey,24,1)='V' "
                      + " and substr(sddaten,1,1)='A' and substr(sdkey,3,3) = VAABUSIMODE ) as BRANDN, "
                      + " VAAALTERNAT AS STR,(select substr(sddaten,52,10) "
                      + " from sddat where sdsa = '0734' and substr(sddaten,1,1)='A'  "
                      + " and substr(sdkey,3,1) = VAAALTERNAT ) as STRNAME, "
                      + " VAABRTVON*0.01 AS VALIDWID,nvl((SELECT MAX(TRIM(T2.TXTKTEXT)) AS YARN "
                      + " from txtind T1,TXTKON T2 where T1.txtitxtart = 'VAD' "
                      + " AND T1.TXTIMANDANT = T2.TXTKMANDANT AND T1.TXTIPIND = T2.TXTKPIND "
                      + " AND A.VKPKOLL || TRIM(A.VKPART) = TRIM(T1.TXTISIND)),B.VAABEZ) AS DESCR, "
                      + " to_number(DECODE(vaagesant1,'0','',vaagesant1))||trim(VAAGESBEZ1) "
                      + " ||to_number(DECODE(vaagesant2,0,'',vaagesant2))||TRIM(VAAGESBEZ2) "
                      + " ||to_number(DECODE(vaagesant3,0,'',vaagesant3))||TRIM(VAAGESBEZ3) "
                      + " ||to_number(DECODE(vaagesant4,0,'',vaagesant4))||TRIM(VAAGESBEZ4) "
                      + " ||to_number(DECODE(vaagesant5,0,'',vaagesant5))||TRIM(VAAGESBEZ5) as COMPOSITION,  "
                      + " TRIM(D.KDKNAME) AS BRANDNAME,TRIM(NVL(NVL(A2.KDANAME1,A1.KDANAME1),D.KDKNAME)) PAYCU, "
                      + " C.VAFBESCHICH,(select substr(sddaten,2,20) "
                      + " from sddat where sdsa = '0275' and substr(sddaten,1,1)='A'  "
                      + " and substr(sdkey,3,3) = SUBSTR(C.VAFBESCHICH,1,3) ) as FINISHING,"
                      + " SUBSTR(A.VKPLIEFTERM,5,2) as mon,SUBSTR(A.VKPLIEFTERM,7,2) as dd, "
                      + " (CASE WHEN SUBSTR(A.VKPLIEFTERM,7,2)<=10 THEN 'EARLY'  "
                      + "   WHEN SUBSTR(A.VKPLIEFTERM,7,2)>20 THEN 'LAST' "
                      + "   WHEN TRIM(SUBSTR(A.VKPLIEFTERM,7,2)) IS NULL THEN '' ELSE 'MID' END )as DA, "
                      + " (SELECT MAX(REPLACE(REPLACE(TXTKTEXT,'½»»õ·¶Î§:',''),'¡£','')) "
                      + " FROM TXTIND X,TXTKON Y WHERE X.TXTIMANDANT = Y.TXTKMANDANT "
                      + " AND X.TXTITXTART = 'VKT' AND X.TXTIPIND = Y.TXTKPIND "
                      + " AND X.TXTISIND LIKE '%000LIEF%' AND Y.TXTKTEXT LIKE '½»»õ·¶Î§:%' "
                      + " AND SUBSTR(X.TXTISIND,1,8) = A.VKPAUFKRS||A.VKPAUFLFD) AS DELNOTE, "
                      + " trim(I.vakbkdartnr) AS KDART,trim(I.vakbkdartbez) AS KDARTBEZ,trim(I.vakbkdfarbnr) AS KDARTCOLOR, "
                      + " A.VKPERL,A.VKPLVDAT,A.VKPZUGET*0.01 AS ALLQTY,A.VKPVERS*0.01 AS DNQTY,A.VKPFAKT*0.01 AS INQTY "
                      + " FROM VKPOS A,VAART B,VAFARBEN C,KDSTAMM D,HRSTAMM H,VAKDBEZ I, "
                      + " (SELECT A.VKAMANDANT,A.VKASA,A.VKAAUFKRS,A.VKAAUFLFD,B.KDANAME1  "
                      + " FROM VKADR A,KUNDADR B "
                      + " WHERE A.VKAMANDANT = B.KDAMANDANT AND A.VKAKUNDNR3 = B.KDAKUNDNR "
                      + " AND A.VKAADRSL3 = B.KDAADRSL AND A.VKAAUFPOS='000') A1, "
                      + " (SELECT A.VKAMANDANT,A.VKASA,A.VKAAUFKRS,A.VKAAUFLFD,A.VKAAUFPOS,B.KDANAME1  "
                      + " FROM VKADR A,KUNDADR B "
                      + " WHERE A.VKAMANDANT = B.KDAMANDANT AND A.VKAKUNDNR3 = B.KDAKUNDNR "
                      + " AND A.VKAADRSL3 = B.KDAADRSL AND A.VKAAUFPOS >'000') A2, "
                      + " (SELECT DISTINCT TRIM(SUBSTR(A.TXTISIND,1,8)) AS ORDERNO, "
                      + " LPAD(SUBSTR(TXTKTEXT,1,INSTR(REPLACE(TXTKTEXT,'¡£','.'),'.',1)-1),3,'0') AS ITEM, "
                      + " STRAGG(TRIM(SUBSTR(TXTKTEXT,INSTR(REPLACE(TXTKTEXT,'¡£','.'),'.',1)+1))) "
                      + " OVER(PARTITION BY SUBSTR(TXTKTEXT,1,INSTR(REPLACE(TXTKTEXT,'¡£','.'),'.',1)-1), "
                      + " SUBSTR(A.TXTISIND,1,8)) AS REMARK "
                      + " FROM TXTIND A,TXTKON B WHERE A.TXTIMANDANT = B.TXTKMANDANT "
                      + " AND TXTITXTART = 'VKT' AND A.TXTIPIND = B.TXTKPIND "
                      + " AND A.TXTISIND LIKE '%000IVVT%') A3  "
                      + " WHERE A.VKPSA <> 'AJ' AND A.VKPAUFART = 'NA' "
                      + " AND A.VKPMANDANT = B.VAAMANDANT AND A.VKPKOLL = B.VAAKOLL "
                      + " AND A.VKPART = B.VAAART AND A.VKPMANDANT = C.VAFMANDANT "
                      + " AND A.VKPKOLL = C.VAFKOLL AND A.VKPART = C.VAFART AND A.VKPFARBE = C.VAFFARBE "
                      + " AND A.VKPMANDANT = D.KDMANDANT AND A.VKPKUNDNR = D.KDKUNDNR "
                      + " AND A.VKPMANDANT = H.HRMANDANT AND A.VKPSACHBE = H.HRBENID "
                      + " AND A.VKPMANDANT = I.VAKBMANDANT(+) AND A.VKPKOLL = I.VAKBKOLL(+) "
                      + " AND A.VKPART = I.VAKBART(+) AND A.VKPKUNDNR = I.VAKBKUNDNR(+) AND A.VKPFARBE = I.VAKBFARBE(+) "
                      + " AND A.VKPMANDANT = A1.VKAMANDANT(+) AND A.VKPSA = A1.VKASA(+) "
                      + " AND A.VKPAUFKRS = A1.VKAAUFKRS(+) AND A.VKPAUFLFD = A1.VKAAUFLFD(+) "
                      + " AND A.VKPMANDANT = A2.VKAMANDANT(+) AND A.VKPSA = A2.VKASA(+) "
                      + " AND A.VKPAUFKRS = A2.VKAAUFKRS(+) AND A.VKPAUFLFD = A2.VKAAUFLFD(+) "
                      + " AND A.VKPAUFPOS = A2.VKAAUFPOS(+)  "
                      + " AND A.VKPAUFKRS||A.VKPAUFLFD = A3.ORDERNO(+) "
                      + " AND A.VKPAUFPOS = A3.ITEM(+) "
                      + " AND (A.VKPPOSTYP = :VKPPOSTYP: OR :VKPPOSTYP: = 'AAA' ) "
                      + " AND (A.VKPAUFKRS = :VKPAUFKRS: OR :VKPAUFKRS: = 'AA' ) "
                      + " AND (A.VKPAUFLFD = :VKPAUFLFD: OR :VKPAUFLFD:VKPAUFLFD = '000000' ) "
                      + " AND (A.VKPKUNDNR = :VKPKUNDNR: OR  :VKPKUNDNR:= '00000000' ) "
                      + " AND (trim(A.VKPKDKOMM) = :VKPKDKOMM: OR :VKPKDKOMM: = 'AAAAAAAAAAAAAAA' ) "
                      + " AND (trim(A.VKPSACHBE) = :VKPSACHBE: OR :VKPSACHBE: = 'AAAAAAAA' ) "
                      + " AND (trim(A.VKPKOLL) = :VKPKOLL: OR :VKPKOLL:= 'AAAAAA' ) "
                      + " AND A.VKPART LIKE '%" + dwData["VKPART"].ToString() + "%' "
                      + " AND (A.VKPLIEFTERM >= :VKPLIEFTERM: AND  A.VKPLIEFTERM <= :VKPLIEFEING:) "
                      + " AND (A.VKPNEUDAT >= :VKPNEUDAT: AND  A.VKPNEUDAT <= :VKPAENDDAT:)) "
                      + " WHERE DESCR LIKE '%" + dwData["_VKPKDBEZ"].ToString() + "%' "
                      + " ORDER BY 1,2  ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP15(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,P.* FROM VKPOS P JOIN VVTLIEF ON VVTMANDANT=VKPMANDANT AND  VVTAUFKRS=VKPAUFKRS AND VVTAUFLFD=VKPAUFLFD AND VVTAUFPOS=VKPAUFPOS WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA ='  ' AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VVTLIEFSCH=:VKPNEUBEN: ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP16(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPART,VKPFARBE,ROUND(decode(VKPMEEH,'M  ',VKPMENGE1*0.01 ,'YRD',VKPMENGE1*0.01*0.9144 ),2) AS QTYENDM, ROUND(decode(VKPMEEH,'M  ',VKPMENGE1*0.01*1.094 ,'YRD',VKPMENGE1*0.01 ),2) AS QTYENDY FROM VKPOS P JOIN WDECK ON VKPSA='  ' AND WDSA= 'K' AND WDUPOS ='00' AND VKPMANDANT=WDMANDANT AND VKPAUFKRS=WDAUFKRS AND VKPAUFLFD=WDAUFLFD AND VKPAUFPOS=WDAUFPOS"
                        + " WHERE WDART=:VKPART: AND WDFARBE=:VKPFARBE:"
                         + " ORDER BY VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPART,VKPFARBE";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP17(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,P.* FROM VKPOS P WHERE  VKPMANDANT=:VKPMANDANT: AND VKPSA =:VKPSA:  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP18(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPMENGE1,VAFPART,VAFPVAR, VAFFFARBE,VAFDESS,VAFCOLORIT,VAFBESCHICH,VAFPGROE FROM VKPOS P"
                + " JOIN VAFARBEN ON VKPMANDANT=VAFMANDANT AND VKPKOLL=VAFKOLL AND VKPART=VAFART AND VKPFARBE=VAFFARBE"
                + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA='  ' AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP19(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,P.* FROM VKPOS P WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA =:VKPSA: AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPKOLL=:VKPKOLL: AND VKPART=:VKPART:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP20(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT  MAX(VKPAUFPOS) AS VKPAUFPOS FROM VKPOS WHERE VKPMANDANT=:VKPMANDANT: AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP21(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,K.VKKZAHLBED,VKPKUNDNR,VKKHWAEHRSL,VKPAUFKRS||VKPAUFLFD||VKPAUFPOS AS KEY, P.* FROM VKPOS P JOIN VKKOPF K ON VKPAUFKRS=VKKAUFKRS AND VKPAUFLFD=VKKAUFLFD "
                        + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA ='  ' "
                        + dwData["VKPAUFKRS"].ToString()
                        + dwData["VKPAUFLFD"].ToString()
                        + dwData["VKPAUFPOS"].ToString(); ;
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP22(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,A.VKPAUFKRS,A.VKPAUFLFD,A.VKPAUFPOS,A.VKPMENGE1*0.01 AS VKPMENGE1,A.VKPZUGET*0.01 AS VKPZUGET FROM VKPOS A WHERE VKPMANDANT =:VKPMANDANT: AND VKPAUFKRS =:VKPAUFKRS: AND VKPAUFLFD =:VKPAUFLFD:  AND VKPAUFPOS LIKE '" + dwData["VKPAUFPOS"] + "%' AND A.VKPERL =' ' AND A.VKPSA <>'AJ'";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }

        public DataSet QVKP23(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPAENDDAT,VKPAENDBEN,VKPNEUBEN,VKPNEUDAT,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,TRIM(SUBSTR(SDDATEN,52,6)) AS ACCOUNT,EXCELFILE,VKPSA,VKPKUNDNR,VKKANSPRECH,VKKVB,VKKVG,VAAPRGR,VAAARTGRP,VAAFILLER,VKPPOSWERT,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPWUTERM,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL,VKPMEEH"
             + ",VKKBESTNR,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,'              ' AS VKCOM,VKPSACHBE, "
             + " (SELECT MIN(EKPAUFKRS||EKPAUFLFD||EKPAUFPOS) FROM EKPOS E,ABAUFM F WHERE E.EKPSA='PO' AND E.EKPMANDANT = F.ABAMANDANT AND E.EKPAUFKRS = F.ABAAUFKRS AND E.EKPAUFLFD = F.ABAAUFLFD AND E.EKPAUFPOS = F.ABAAUFPOS AND F.ABAAUFTYP='B' AND F.ABAVKAUFTYP = 'K' AND F.ABAVKAUFKRS = M.VKPAUFKRS AND F.ABAVKAUFLFD = M.VKPAUFLFD AND F.ABAVKAUFPOS = M.VKPAUFPOS) AS POORDER, "
             + " (SELECT MIN(L.LSLIEFNA) FROM EKPOS E,ABAUFM F,LIEFDAT L WHERE E.EKPSA='PO' AND E.EKPMANDANT = F.ABAMANDANT AND E.EKPAUFKRS = F.ABAAUFKRS AND E.EKPAUFLFD = F.ABAAUFLFD AND E.EKPAUFPOS = F.ABAAUFPOS AND F.ABAAUFTYP='B' AND F.ABAVKAUFTYP = 'K' AND E.EKPMANDANT = L.LSMANDANT AND E.EKPLIEFNR = L.LSLIEFNR AND F.ABAVKAUFKRS = M.VKPAUFKRS AND F.ABAVKAUFLFD = M.VKPAUFLFD AND F.ABAVKAUFPOS = M.VKPAUFPOS) AS SUPPLIER, "
             + " VKPPREIS,VKKAUFART,VKKHWAEHRSL,VKKZAHLBED,VKKLIEFBED,VKKVERSART,VKKSPED, "
              + "VRPZUABWERT1*0.01 AS SUR1,VRPZUABWERT2*0.01 AS SUR2, VRPZUABWERT3*0.01 AS SUR3, "
              + "(VRPZUABWERT1+VRPZUABWERT2+VRPZUABWERT3+VRPZUABWERT4+VRPZUABWERT5)*0.01 AS SUR, "
             + " (VRPRABWERT1+VRPRABWERT2+VRPRABWERT3+VRPRABWERT4+VRPRABWERT5)*0.01 AS DIS, VRPROHWERT AS TOTVALUE, "
             + " (SELECT MAX(VVVERSDAT) FROM VVTLIEF V1,VVLIEF V2 WHERE V1.VVTMANDANT = V2.VVMANDANT AND V1.VVTLIEFSCH = V2.VVLIEFSCH AND V1.VVTAUFTYP='K' AND V1.VVTAUFKRS = M.VKPAUFKRS AND V1.VVTAUFLFD = M.VKPAUFLFD AND V1.VVTAUFPOS = M.VKPAUFPOS) AS DELDAT "
             + " FROM VKPOS M   JOIN VKKOPF ON  (VKKSA ='  '  OR VKKSA='IN') AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
              + " JOIN VAART ON VAAMANDANT=VKPMANDANT AND VAAKOLL=VKPKOLL AND VAAART=VKPART"
              + " LEFT JOIN SDDAT ON SDSA = '0192' AND SDKEY LIKE VKKMANDANT||VKKVG||'%V' "
               + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
               + " LEFT JOIN VKZUAB C ON  VKPMANDANT = VKZMANDANT AND VKPAUFKRS = VKZAUFKRS AND VKPAUFLFD = VKZAUFLFD AND VKPAUFPOS = VKZAUFPOS AND VKZSA = 'VK' "
               + " LEFT JOIN VRPOS ON VRPMANDANT=VKPMANDANT AND VRPSTATIST='K' AND RTRIM(VRPZOLLTNR)='0:100' AND VRPAUFKRS=VKPAUFKRS AND VRPAUFLFD=VKPAUFLFD AND VRPAUFPOS=VKPAUFPOS"
                + " JOIN ICC_HRSTAMM  ON TRIM(USERID)=TRIM(VKPSACHBE) "
               + " WHERE VKPMANDANT=:VKPMANDANT: AND (VKPSA ='  ' OR VKPSA='IN')   "
               + dwData["VKPKUNDNR"].ToString()
               + dwData["VKPPOSTYP"].ToString()
               + dwData["VKPSACHBE"].ToString()
                + dwData["VKPFILLER2"].ToString()
                + dwData["VKPAUFLFD"].ToString()
                + dwData["VKPNEUBEN"].ToString()
                + dwData["VKPKDKOMM"].ToString()
                + dwData["VKPART"].ToString()
                 + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP23JLT(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPAENDDAT,VKPAENDBEN,VKPNEUBEN,VKPNEUDAT,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPPREHFKT,VKPKURS,VKPMEEHFKT,VKPZUSATZ,TRIM(SUBSTR(SDDATEN,52,6)) AS ACCOUNT,EXCELFILE,VKPSA,VKPKUNDNR,VKKANSPRECH,VKKVB,VKKVG,VAAPRGR,VAAARTGRP,VAAFILLER,VKPPOSWERT,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPWUTERM,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL,VKPMEEH"
             + ",VKKBESTNR,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,'              ' AS VKCOM,VKPSACHBE, "
               + " VKPPREIS,VKKAUFART,VKKHWAEHRSL,VKKZAHLBED,VKKLIEFBED,VKKVERSART,VKKSPED, "
              + "VRPZUABWERT1*0.01 AS SUR1,VRPZUABWERT2*0.01 AS SUR2, VRPZUABWERT3*0.01 AS SUR3, "
              + "(VRPZUABWERT1+VRPZUABWERT2+VRPZUABWERT3+VRPZUABWERT4+VRPZUABWERT5)*0.01 AS SUR, "
             + " (VRPRABWERT1+VRPRABWERT2+VRPRABWERT3+VRPRABWERT4+VRPRABWERT5)*0.01 AS DIS, VRPROHWERT AS TOTVALUE "
              + " FROM VKPOS M   JOIN VKKOPF ON  (VKKSA ='  '  OR VKKSA='IN') AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
              + " JOIN VAART ON VAAMANDANT=VKPMANDANT AND VAAKOLL=VKPKOLL AND VAAART=VKPART"
              + " LEFT JOIN SDDAT ON SDSA = '0192' AND SDKEY LIKE VKKMANDANT||VKKVG||'%V' "
               + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
               + " LEFT JOIN VKZUAB C ON  VKPMANDANT = VKZMANDANT AND VKPAUFKRS = VKZAUFKRS AND VKPAUFLFD = VKZAUFLFD AND VKPAUFPOS = VKZAUFPOS AND VKZSA = 'VK' "
               + " LEFT JOIN VRPOS ON VRPMANDANT=VKPMANDANT AND VRPSTATIST='K' AND RTRIM(VRPZOLLTNR)='0:100' AND VRPAUFKRS=VKPAUFKRS AND VRPAUFLFD=VKPAUFLFD AND VRPAUFPOS=VKPAUFPOS"
                + " JOIN ICC_HRSTAMM  ON TRIM(USERID)=TRIM(VKPSACHBE) "
               + " WHERE VKPMANDANT=:VKPMANDANT: AND (VKPSA ='  ' OR VKPSA='IN')   "
               + dwData["VKPKUNDNR"].ToString()
               + dwData["VKPPOSTYP"].ToString()
               + dwData["VKPSACHBE"].ToString()
                + dwData["VKPFILLER2"].ToString()
                + dwData["VKPAUFLFD"].ToString()
                + dwData["VKPNEUBEN"].ToString()
                + dwData["VKPKDKOMM"].ToString()
                + dwData["VKPART"].ToString()
                 + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP23TST(DataRow dwData)//TST销售统计导出
        {

            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPAENDDAT,VKPAENDBEN,VKPNEUBEN,VKPNEUDAT,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPPREHFKT,VKPKURS,VKPMEEHFKT,VKPZUSATZ,TRIM(SUBSTR(SDDATEN,52,6)) AS ACCOUNT,EXCELFILE,VKPSA,VKPKUNDNR,VKKANSPRECH,VKKVB,VKKVG,VAAPRGR,VAAARTGRP,VAAFILLER,VKPPOSWERT,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPWUTERM,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL,VKPMEEH"
             + ",VKKBESTNR,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,'              ' AS VKCOM,VKPSACHBE, "
             + " (SELECT MIN(EKPAUFKRS||EKPAUFLFD||EKPAUFPOS) FROM EKPOS E,ABAUFM F WHERE E.EKPSA='PO' AND E.EKPMANDANT = F.ABAMANDANT AND E.EKPAUFKRS = F.ABAAUFKRS AND E.EKPAUFLFD = F.ABAAUFLFD AND E.EKPAUFPOS = F.ABAAUFPOS AND F.ABAAUFTYP='B' AND F.ABAVKAUFTYP = 'K' AND F.ABAVKAUFKRS = M.VKPAUFKRS AND F.ABAVKAUFLFD = M.VKPAUFLFD AND F.ABAVKAUFPOS = M.VKPAUFPOS) AS POORDER, "
             + " (SELECT MIN(L.LSLIEFNA) FROM EKPOS E,ABAUFM F,LIEFDAT L WHERE E.EKPSA='PO' AND E.EKPMANDANT = F.ABAMANDANT AND E.EKPAUFKRS = F.ABAAUFKRS AND E.EKPAUFLFD = F.ABAAUFLFD AND E.EKPAUFPOS = F.ABAAUFPOS AND F.ABAAUFTYP='B' AND F.ABAVKAUFTYP = 'K' AND E.EKPMANDANT = L.LSMANDANT AND E.EKPLIEFNR = L.LSLIEFNR AND F.ABAVKAUFKRS = M.VKPAUFKRS AND F.ABAVKAUFLFD = M.VKPAUFLFD AND F.ABAVKAUFPOS = M.VKPAUFPOS) AS SUPPLIER, "
             + " VKPPREIS,VKKAUFART,VKKHWAEHRSL,VKKZAHLBED,VKKLIEFBED,VKKVERSART,VKKSPED, "
              + "VRPZUABWERT1*0.01 AS SUR1,VRPZUABWERT2*0.01 AS SUR2, VRPZUABWERT3*0.01 AS SUR3, "
              + "(VRPZUABWERT1+VRPZUABWERT2+VRPZUABWERT3+VRPZUABWERT4+VRPZUABWERT5)*0.01 AS SUR, "
             + " (VRPRABWERT1+VRPRABWERT2+VRPRABWERT3+VRPRABWERT4+VRPRABWERT5)*0.01 AS DIS, VRPROHWERT AS TOTVALUE, "
             + " (SELECT MAX(VVVERSDAT) FROM VVTLIEF V1,VVLIEF V2 WHERE V1.VVTMANDANT = V2.VVMANDANT AND V1.VVTLIEFSCH = V2.VVLIEFSCH AND V1.VVTAUFTYP='K' AND V1.VVTAUFKRS = M.VKPAUFKRS AND V1.VVTAUFLFD = M.VKPAUFLFD AND V1.VVTAUFPOS = M.VKPAUFPOS) AS DELDAT "
             + " FROM VKPOS M   JOIN VKKOPF ON  (VKKSA ='  '  OR VKKSA='IN') AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
              + " JOIN VAART ON VAAMANDANT=VKPMANDANT AND VAAKOLL=VKPKOLL AND VAAART=VKPART"
              + " LEFT JOIN SDDAT ON SDSA = '0192' AND SDKEY LIKE VKKMANDANT||VKKVG||'%V' "
               + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
               + " LEFT JOIN VKZUAB C ON  VKPMANDANT = VKZMANDANT AND VKPAUFKRS = VKZAUFKRS AND VKPAUFLFD = VKZAUFLFD AND VKPAUFPOS = VKZAUFPOS AND VKZSA = 'VK' "
               + " JOIN VRPOS ON VRPMANDANT=VKPMANDANT AND VRPSTATIST='K' AND RTRIM(VRPZOLLTNR)='0:100' AND VRPAUFKRS=VKPAUFKRS AND VRPAUFLFD=VKPAUFLFD AND VRPAUFPOS=VKPAUFPOS"
                + " JOIN ICC_HRSTAMM  ON TRIM(USERID)=TRIM(VKPSACHBE) "
               + " WHERE VKPMANDANT=:VKPMANDANT: AND (VKPSA ='  ' OR VKPSA='IN')   "
               + dwData["VKPKUNDNR"].ToString()
               + dwData["VKPPOSTYP"].ToString()
               + dwData["VKPSACHBE"].ToString()
                + dwData["VKPFILLER2"].ToString()
                + dwData["VKPAUFLFD"].ToString()
                + dwData["VKPNEUBEN"].ToString()
                + dwData["VKPKDKOMM"].ToString()
                + dwData["VKPART"].ToString()
                 + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }

        public DataSet QVK23UBT(DataRow dwData)
        {

            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPAENDDAT,VKPAENDBEN,VKPNEUBEN,VKPNEUDAT,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPPREHFKT,VKPKURS,VKPMEEHFKT,VKPZUSATZ,VKPSA,VKPKUNDNR,VKKANSPRECH,VKKVB,VKKVG,VAAPRGR,VAAARTGRP,VAAFILLER,VKPPOSWERT,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPWUTERM,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL,VKPMEEH"
                + ",VKKBESTSB,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,'              ' AS VKCOM,VKPSACHBE, "
                + " (SELECT MIN(EKPAUFKRS||EKPAUFLFD||EKPAUFPOS) FROM EKPOS E,ABAUFM F WHERE E.EKPSA='PO' AND E.EKPMANDANT = F.ABAMANDANT AND E.EKPAUFKRS = F.ABAAUFKRS AND E.EKPAUFLFD = F.ABAAUFLFD AND E.EKPAUFPOS = F.ABAAUFPOS AND F.ABAAUFTYP='B' AND F.ABAVKAUFTYP = 'K' AND F.ABAVKAUFKRS = M.VKPAUFKRS AND F.ABAVKAUFLFD = M.VKPAUFLFD AND F.ABAVKAUFPOS = M.VKPAUFPOS) AS POORDER, "
                + " (SELECT MIN(L.LSLIEFNA) FROM EKPOS E,ABAUFM F,LIEFDAT L WHERE E.EKPSA='PO' AND E.EKPMANDANT = F.ABAMANDANT AND E.EKPAUFKRS = F.ABAAUFKRS AND E.EKPAUFLFD = F.ABAAUFLFD AND E.EKPAUFPOS = F.ABAAUFPOS AND F.ABAAUFTYP='B' AND F.ABAVKAUFTYP = 'K' AND E.EKPMANDANT = L.LSMANDANT AND E.EKPLIEFNR = L.LSLIEFNR AND F.ABAVKAUFKRS = M.VKPAUFKRS AND F.ABAVKAUFLFD = M.VKPAUFLFD AND F.ABAVKAUFPOS = M.VKPAUFPOS) AS SUPPLIER, "
                + " VKPPREIS,VKKAUFART,VKKHWAEHRSL,VKKZAHLBED,VKKLIEFBED,VKKVERSART,VKKSPED, "
                 + "VRPZUABWERT1*0.01 AS SUR1,VRPZUABWERT2*0.01 AS SUR2, VRPZUABWERT3*0.01 AS SUR3, "
                 + "(VRPZUABWERT1+VRPZUABWERT2+VRPZUABWERT3+VRPZUABWERT4+VRPZUABWERT5)*0.01 AS SUR, "
                + " (VRPRABWERT1+VRPRABWERT2+VRPRABWERT3+VRPRABWERT4+VRPRABWERT5)*0.01 AS DIS, VRPROHWERT AS TOTVALUE, "
                + " (SELECT MAX(VVVERSDAT) FROM VVTLIEF V1,VVLIEF V2 WHERE V1.VVTMANDANT = V2.VVMANDANT AND V1.VVTLIEFSCH = V2.VVLIEFSCH AND V1.VVTAUFTYP='K' AND V1.VVTAUFKRS = M.VKPAUFKRS AND V1.VVTAUFLFD = M.VKPAUFLFD AND V1.VVTAUFPOS = M.VKPAUFPOS) AS DELDAT "
                + " FROM VKPOS M   JOIN VKKOPF ON  (VKKSA ='  '  OR VKKSA='IN') AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
                 + " JOIN VAART ON VAAMANDANT=VKPMANDANT AND VAAKOLL=VKPKOLL AND VAAART=VKPART"
                  + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
                  + " LEFT JOIN VKZUAB C ON  VKPMANDANT = VKZMANDANT AND VKPAUFKRS = VKZAUFKRS AND VKPAUFLFD = VKZAUFLFD AND VKPAUFPOS = VKZAUFPOS AND VKZSA = 'VK' "
                  + " JOIN VRPOS ON VRPMANDANT=VKPMANDANT AND VRPSTATIST='K' AND RTRIM(VRPZOLLTNR)='0:100' AND VRPAUFKRS=VKPAUFKRS AND VRPAUFLFD=VKPAUFLFD AND VRPAUFPOS=VKPAUFPOS"
                //+ " LEFT JOIN VKKOPF  ON VKPAUFKRS=VKKAUFKRS AND VKPAUFLFD=VKKAUFLFD "
                  + " WHERE VKPMANDANT=:VKPMANDANT: AND (VKPSA ='  ' OR VKPSA='IN')   "
                  + dwData["VKPKUNDNR"].ToString()
                  + dwData["VKPPOSTYP"].ToString()
                  + dwData["VKPSACHBE"].ToString()
                   + dwData["VKPFILLER2"].ToString()
                   + dwData["VKPAUFLFD"].ToString()
                   + dwData["VKPNEUBEN"].ToString()
                   + dwData["VKPKDKOMM"].ToString()
                   + dwData["VKPART"].ToString()
                    + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPKDKOMM";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVK23SJH(DataRow dwData)
        {

            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPAENDDAT,VKPAENDBEN,VKPNEUBEN,VKPNEUDAT,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPPREHFKT,VKPKURS,VKPMEEHFKT,VKPZUSATZ,VKPSA,VKPKUNDNR,VKKANSPRECH,VKKVB,VKKVG,VAAPRGR,VAAARTGRP,VAAFILLER,VKPPOSWERT,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPWUTERM,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL,VKPMEEH"
                + ",VKKBESTSB,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,'              ' AS VKCOM,VKPSACHBE, VKKBESTNR,"
                 + " VKPPREIS,VKKAUFART,VKKHWAEHRSL,VKKZAHLBED,VKKLIEFBED,VKKVERSART,VKKSPED, "
                 + "VRPZUABWERT1*0.01 AS SUR1,VRPZUABWERT2*0.01 AS SUR2, VRPZUABWERT3*0.01 AS SUR3, "
                 + "(VRPZUABWERT1+VRPZUABWERT2+VRPZUABWERT3+VRPZUABWERT4+VRPZUABWERT5)*0.01 AS SUR, "
                + " (VRPRABWERT1+VRPRABWERT2+VRPRABWERT3+VRPRABWERT4+VRPRABWERT5)*0.01 AS DIS, VRPROHWERT AS TOTVALUE, "
                + " (SELECT MAX(VVVERSDAT) FROM VVTLIEF V1,VVLIEF V2 WHERE V1.VVTMANDANT = V2.VVMANDANT AND V1.VVTLIEFSCH = V2.VVLIEFSCH AND V1.VVTAUFTYP='K' AND V1.VVTAUFKRS = M.VKPAUFKRS AND V1.VVTAUFLFD = M.VKPAUFLFD AND V1.VVTAUFPOS = M.VKPAUFPOS) AS DELDAT "
                + " FROM VKPOS M   JOIN VKKOPF ON  (VKKSA ='  '  OR VKKSA='IN') AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
                 + " JOIN VAART ON VAAMANDANT=VKPMANDANT AND VAAKOLL=VKPKOLL AND VAAART=VKPART"
                  + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
                  + " LEFT JOIN VKZUAB C ON  VKPMANDANT = VKZMANDANT AND VKPAUFKRS = VKZAUFKRS AND VKPAUFLFD = VKZAUFLFD AND VKPAUFPOS = VKZAUFPOS AND VKZSA = 'VK' "
                  + " JOIN VRPOS ON VRPMANDANT=VKPMANDANT AND VRPSTATIST='K' AND RTRIM(VRPZOLLTNR)='0:100' AND VRPAUFKRS=VKPAUFKRS AND VRPAUFLFD=VKPAUFLFD AND VRPAUFPOS=VKPAUFPOS"
                  //+ " LEFT JOIN VKKOPF  ON VKPAUFKRS=VKKAUFKRS AND VKPAUFLFD=VKKAUFLFD "
                  + " WHERE VKPMANDANT=:VKPMANDANT: AND (VKPSA ='  ' OR VKPSA='IN')   "
                  + dwData["VKPKUNDNR"].ToString()
                  + dwData["VKPPOSTYP"].ToString()
                  + dwData["VKPSACHBE"].ToString()
                   + dwData["VKPFILLER2"].ToString()
                   + dwData["VKPAUFLFD"].ToString()
                   + dwData["VKPNEUBEN"].ToString()
                   + dwData["VKPKDKOMM"].ToString()
                   + dwData["VKPART"].ToString()
                    + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPKDKOMM";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVK2301UBT(DataRow dwData)
        {

            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPAENDDAT,VKPAENDBEN,VKPNEUBEN,VKPNEUDAT,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPPREHFKT,VKPKURS,VKPMEEHFKT,VKPSA,VKPZUSATZ,VKPKUNDNR,VKKANSPRECH,VKKVB,VKKVG,VAAPRGR,VAAARTGRP,VAAFILLER,VKPPOSWERT,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPWUTERM,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL,VKPMEEH"
                + ",VKKBESTSB,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,'              ' AS VKCOM,VKPSACHBE, "
                + " (SELECT MIN(EKPAUFKRS||EKPAUFLFD||EKPAUFPOS) FROM EKPOS E,ABAUFM F WHERE E.EKPSA='PO' AND E.EKPMANDANT = F.ABAMANDANT AND E.EKPAUFKRS = F.ABAAUFKRS AND E.EKPAUFLFD = F.ABAAUFLFD AND E.EKPAUFPOS = F.ABAAUFPOS AND F.ABAAUFTYP='B' AND F.ABAVKAUFTYP = 'K' AND F.ABAVKAUFKRS = M.VKPAUFKRS AND F.ABAVKAUFLFD = M.VKPAUFLFD AND F.ABAVKAUFPOS = M.VKPAUFPOS) AS POORDER, "
                + " (SELECT MIN(L.LSLIEFNA) FROM EKPOS E,ABAUFM F,LIEFDAT L WHERE E.EKPSA='PO' AND E.EKPMANDANT = F.ABAMANDANT AND E.EKPAUFKRS = F.ABAAUFKRS AND E.EKPAUFLFD = F.ABAAUFLFD AND E.EKPAUFPOS = F.ABAAUFPOS AND F.ABAAUFTYP='B' AND F.ABAVKAUFTYP = 'K' AND E.EKPMANDANT = L.LSMANDANT AND E.EKPLIEFNR = L.LSLIEFNR AND F.ABAVKAUFKRS = M.VKPAUFKRS AND F.ABAVKAUFLFD = M.VKPAUFLFD AND F.ABAVKAUFPOS = M.VKPAUFPOS) AS SUPPLIER, "
                + " VKPPREIS,VKKAUFART,VKKHWAEHRSL,VKKZAHLBED,VKKLIEFBED,VKKVERSART,VKKSPED, "
                 + "' ' AS SUR1,' ' AS SUR2, ' ' AS SUR3, "
                 + "' ' AS SUR, "
                + " ' ' AS DIS, ' ' AS TOTVALUE, "
                + " ' ' AS DELDAT "
                + " FROM VKPOS M   JOIN VKKOPF ON  (VKKSA ='  '  OR VKKSA='IN') AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
                 + " JOIN VAART ON VAAMANDANT=VKPMANDANT AND VAAKOLL=VKPKOLL AND VAAART=VKPART"
                  + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
                  + " LEFT JOIN VKZUAB C ON  VKPMANDANT = VKZMANDANT AND VKPAUFKRS = VKZAUFKRS AND VKPAUFLFD = VKZAUFLFD AND VKPAUFPOS = VKZAUFPOS AND VKZSA = 'VK' "
                  //+ " JOIN VRPOS ON VRPMANDANT=VKPMANDANT AND VRPSTATIST='K' AND RTRIM(VRPZOLLTNR)='0:100' AND VRPAUFKRS=VKPAUFKRS AND VRPAUFLFD=VKPAUFLFD AND VRPAUFPOS=VKPAUFPOS"
                //+ " LEFT JOIN VKKOPF  ON VKPAUFKRS=VKKAUFKRS AND VKPAUFLFD=VKKAUFLFD "
                  + " WHERE VKPMANDANT=:VKPMANDANT: AND (VKPSA ='  ' OR VKPSA='IN')   "
                  + dwData["VKPKUNDNR"].ToString()
                  + dwData["VKPPOSTYP"].ToString()
                  + dwData["VKPSACHBE"].ToString()
                   + dwData["VKPFILLER2"].ToString()
                   + dwData["VKPAUFLFD"].ToString()
                   + dwData["VKPNEUBEN"].ToString()
                   + dwData["VKPKDKOMM"].ToString()
                   + dwData["VKPART"].ToString()
                    + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPKDKOMM";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP23ZY(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPAENDDAT,VKPAENDBEN,VKPNEUBEN,VKPNEUDAT,VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,VKPPREHFKT,VKPKURS,VKPMEEHFKT,VKPSA,VKPZUSATZ,VKPKUNDNR,VKKANSPRECH,VKKVB,VKKVG,VAAPRGR,VAAARTGRP,VAAFILLER,VKPPOSWERT,VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPEXART,VKPEXAUFKRS,VKPEXAUFLFD,VKPEXAUFPOS,VKPKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPRESERV,VKPZUGET,VKPWUTERM,VKPLIEFTERM,VKPNEUDAT,VKPNEUBEN,VKPFREIGE,VKPKOMMISS,VKPVERS,VKPOFFEN,VKPFAKT,VKPERL,VKPMEEH"
                + ",VKKBESTNR,VKPKDKOMM,VKPKDFARBNR,KDKUNDNA,KDKNAME,KDNAME1,'              ' AS VKCOM,VKPSACHBE, "
                + " (SELECT MIN(EKPAUFKRS||EKPAUFLFD||EKPAUFPOS) FROM EKPOS E,ABAUFM F WHERE E.EKPSA='PO' AND E.EKPMANDANT = F.ABAMANDANT AND E.EKPAUFKRS = F.ABAAUFKRS AND E.EKPAUFLFD = F.ABAAUFLFD AND E.EKPAUFPOS = F.ABAAUFPOS AND F.ABAAUFTYP='B' AND F.ABAVKAUFTYP = 'K' AND F.ABAVKAUFKRS = M.VKPAUFKRS AND F.ABAVKAUFLFD = M.VKPAUFLFD AND F.ABAVKAUFPOS = M.VKPAUFPOS) AS POORDER, "
                + " (SELECT MIN(L.LSLIEFNA) FROM EKPOS E,ABAUFM F,LIEFDAT L WHERE E.EKPSA='PO' AND E.EKPMANDANT = F.ABAMANDANT AND E.EKPAUFKRS = F.ABAAUFKRS AND E.EKPAUFLFD = F.ABAAUFLFD AND E.EKPAUFPOS = F.ABAAUFPOS AND F.ABAAUFTYP='B' AND F.ABAVKAUFTYP = 'K' AND E.EKPMANDANT = L.LSMANDANT AND E.EKPLIEFNR = L.LSLIEFNR AND F.ABAVKAUFKRS = M.VKPAUFKRS AND F.ABAVKAUFLFD = M.VKPAUFLFD AND F.ABAVKAUFPOS = M.VKPAUFPOS) AS SUPPLIER, "
                + " VKPPREIS,VKKAUFART,VKKHWAEHRSL,VKKZAHLBED,VKKLIEFBED,VKKVERSART,VKKSPED, "
                 + "0 AS SUR1,0 AS SUR2,0 AS SUR3, 0 AS SUR,  0 AS DIS,0 AS TOTVALUE, "
                + " (SELECT MAX(VVVERSDAT) FROM VVTLIEF V1,VVLIEF V2 WHERE V1.VVTMANDANT = V2.VVMANDANT AND V1.VVTLIEFSCH = V2.VVLIEFSCH AND V1.VVTAUFTYP='K' AND V1.VVTAUFKRS = M.VKPAUFKRS AND V1.VVTAUFLFD = M.VKPAUFLFD AND V1.VVTAUFPOS = M.VKPAUFPOS) AS DELDAT "
                + " FROM VKPOS M   JOIN VKKOPF ON  (VKKSA ='  '  OR VKKSA='IN') AND VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD "
                 + " JOIN VAART ON VAAMANDANT=VKPMANDANT AND VAAKOLL=VKPKOLL AND VAAART=VKPART"
                  + " LEFT JOIN KDSTAMM ON VKKKUNDNR=KDKUNDNR AND VKKMANDANT=KDMANDANT"
                  + " LEFT JOIN VKZUAB C ON  VKPMANDANT = VKZMANDANT AND VKPAUFKRS = VKZAUFKRS AND VKPAUFLFD = VKZAUFLFD AND VKPAUFPOS = VKZAUFPOS AND VKZSA = 'VK' "
                   //+ " LEFT JOIN VKKOPF  ON VKPAUFKRS=VKKAUFKRS AND VKPAUFLFD=VKKAUFLFD "
                  + " WHERE VKPMANDANT=:VKPMANDANT: AND (VKPSA ='  ' OR VKPSA='IN')   "
                  + dwData["VKPKUNDNR"].ToString()
                  + dwData["VKPPOSTYP"].ToString()
                  + dwData["VKPSACHBE"].ToString()
                   + dwData["VKPFILLER2"].ToString()
                   + dwData["VKPAUFLFD"].ToString()
                   + dwData["VKPNEUBEN"].ToString()
                   + dwData["VKPKDKOMM"].ToString()
                   + dwData["VKPART"].ToString()
                    + " ORDER BY  VKPAUFKRS,VKPAUFLFD,VKPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP24(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT K.VKPART,K.VKPFARBE,K.VKPKKOLL, K.VKPMENGE1*0.01 AS VKPMENGE1, K.VKPMEEH,"
                + " sum(DECODE(W.WBBWAKZ,'R',decode(WBBLB, 'PB', 1, 0),0)) AS PACK, "
                + " ROUND(sum(DECODE(W.WBBWAKZ,'R',decode(WBBLB, 'PB', WBBISTKLG, 0),0)) * 0.001,1) AS WBBISTKLG, "
                + " sum(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CP', 1, 0),0)) AS PACK1, "
                + " ROUND(sum(DECODE(K.VKPMEEH,'YRD',(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CP', WBBISTKLG, 0),0))/0.9144,(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CP', WBBISTKLG, 0),0)))) * 0.001,1) AS WBBISTKLG1, "
                + " sum(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', 1, 0),0)) AS PACK2, "
                + " ROUND(sum(DECODE(K.VKPMEEH,'YRD',(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', WBBISTKLG, 0),0))/0.9144,(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', WBBISTKLG, 0),0)))) * 0.001,1) AS WBBISTKLG2, "
                + " sum(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', decode(WBBLP,'01      ',1,0), 0),0)) AS PACK6, "
                + " ROUND(sum(DECODE(K.VKPMEEH,'YRD',(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', decode(WBBLP,'01      ',WBBISTKLG,0), 0),0))/0.9144,(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW',decode(WBBLP,'01      ',WBBISTKLG,0), 0),0)))) * 0.001,1) AS WBBISTKLG6, "
                    + " sum(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', decode(WBBLP,'02      ',1,0), 0),0)) AS PACK7, "
                + " ROUND(sum(DECODE(K.VKPMEEH,'YRD',(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', decode(WBBLP,'02      ',WBBISTKLG,0), 0),0))/0.9144,(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW',decode(WBBLP,'02      ',WBBISTKLG,0), 0),0)))) * 0.001,1) AS WBBISTKLG7, "
                   + " sum(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', decode(WBBLP,'03      ',1,0), 0),0)) AS PACK8, "
                + " ROUND(sum(DECODE(K.VKPMEEH,'YRD',(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', decode(WBBLP,'03      ',WBBISTKLG,0), 0),0))/0.9144,(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW',decode(WBBLP,'03      ',WBBISTKLG,0), 0),0)))) * 0.001,1) AS WBBISTKLG8, "
                   + " sum(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', decode(WBBLP,'04      ',1,0), 0),0)) AS PACK9, "
                + " ROUND(sum(DECODE(K.VKPMEEH,'YRD',(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', decode(WBBLP,'04      ',WBBISTKLG,0), 0),0))/0.9144,(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW',decode(WBBLP,'04      ',WBBISTKLG,0), 0),0)))) * 0.001,1) AS WBBISTKLG9, "
                   + " sum(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', decode(WBBLP,'05      ',1,0), 0),0)) AS PACK10, "
                + " ROUND(sum(DECODE(K.VKPMEEH,'YRD',(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW', decode(WBBLP,'05      ',WBBISTKLG,0), 0),0))/0.9144,(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'CW',decode(WBBLP,'05      ',WBBISTKLG,0), 0),0)))) * 0.001,1) AS WBBISTKLG10, "

                + " sum(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'KO', 1, 0),0)) AS PACK3, "
                + " ROUND(sum(DECODE(K.VKPMEEH,'YRD',(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'KO', WBBISTKLG, 0),0))/0.9144,(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'KO', WBBISTKLG, 0),0)))) * 0.001,1) AS WBBISTKLG3, "
                + " sum(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'DC', 1, 0),0)) AS PACK4, "
                + " ROUND(sum(DECODE(K.VKPMEEH,'YRD',(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'DC', WBBISTKLG, 0),0))/0.9144,(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'DC', WBBISTKLG, 0),0)))) * 0.001,1) AS WBBISTKLG4, "
                + " sum(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'LB', 1, 0),0))AS PACK5, "
                + " ROUND(sum(DECODE(K.VKPMEEH,'YRD',(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'LB', WBBISTKLG, 0),0))/0.9144,(DECODE(W.WBBWAKZ,'F',decode(WBBLB, 'LB', WBBISTKLG, 0),0)))) * 0.001,1) AS WBBISTKLG5 "
                + " FROM (SELECT DISTINCT SUM(V.VKPMENGE1)OVER(PARTITION BY V.VKPART, V.VKPFARBE,V.VKPKKOLL) AS VKPMENGE1, "
                + "       MAX(V.VKPMEEH)OVER(PARTITION BY V.VKPART, V.VKPFARBE,V.VKPKKOLL)AS VKPMEEH,  "
                + "       V.VKPKKOLL, V.VKPART, V.VKPFARBE ,K.WDMANDANT,K.WDART,K.WDFARBE,K.WDVAR "
                + "       FROM VKPOS V, WDECK K WHERE V.VKPSA = '  ' AND K.WDUPOS = '00' "
                + "       AND (('Y' = :VKPSA: AND INSTR(V.VKPKKOLL, '#',1) > 0) OR ('N' = :VKPSA:)) "
                + "       AND V.VKPART LIKE :VKPART:||'%' "
                + "       AND V.VKPFARBE LIKE :VKPFARBE:||'%' "
                + "       AND V.VKPMANDANT = K.WDMANDANT AND V.VKPAUFKRS = K.WDAUFKRS "
                + "       AND V.VKPAUFLFD = K.WDAUFLFD AND V.VKPAUFPOS = K.WDAUFPOS) K,  WBBST W"
                + " WHERE  K.WDMANDANT = W.WBBMANDANT AND K.WDART = W.WBBART AND K.WDVAR = W.WBBVAR AND K.WDFARBE = W.WBBFARBE  AND W.WBBLB IN ('CP', 'CW', 'KO', 'DC', 'LB','PB') "
                + " AND W.WBBVERSANDKZ <>'J' AND W.wbberlkz <> 'J' AND W.WBBISTKLG > 0 "
                + " GROUP BY K.VKPMENGE1, K.VKPMEEH,K.VKPKKOLL,K.VKPART, K.VKPFARBE"
                + " ORDER BY K.VKPART, K.VKPFARBE";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP25(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT A.VKPART,A.VKPFARBE,A.VKPKOLL,A.VKPMANDANT,NVL(B.ROWNID,0) AS ROWNID, "
                + " (select SUBSTR(MIN(J.NEWTIME),5,4) from ICC_VKQAJD J WHERE A.VKPART=J.ART AND A.VKPFARBE=J.COLOR AND J.TYP = 'CP') AS CPDAT, "
                + " (select SUBSTR(MIN(J.NEWTIME),5,4) from ICC_VKQAJD J WHERE A.VKPART=J.ART AND A.VKPFARBE=J.COLOR AND J.TYP = 'ZC') AS ZCDAT, "
                + " (select SUBSTR(MIN(J.NEWTIME),5,4) from ICC_VKQAJD J WHERE A.VKPART=J.ART AND A.VKPFARBE=J.COLOR AND J.TYP = 'JP') AS JPDAT, "
                + " (select SUBSTR(MIN(J.NEWTIME),5,4) from ICC_VKQAJD J WHERE A.VKPART=J.ART AND A.VKPFARBE=J.COLOR AND J.TYP = 'CJ') AS CJDAT, "
                + " (select SUBSTR(MIN(J.NEWTIME),5,4) from ICC_VKQAJD J WHERE A.VKPART=J.ART AND A.VKPFARBE=J.COLOR AND J.TYP = 'KH') AS KHDAT "
                + " FROM VKPOS A,ICC_VKQA B WHERE A.VKPMANDANT = :VKPMANDANT: AND A.VKPSA ='  '  AND A.VKPART LIKE :VKPART:||'%' "
                + " AND A.VKPMANDANT = B.MANDANT(+) AND A.VKPKOLL = B.COLL(+) AND A.VKPART = B.ART(+) AND A.VKPFARBE = B.COLOR(+) "
                + " ORDER BY 1,2 ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP26(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "select B.VKPAUFKRS,B.VKPAUFLFD,B.VKPAUFPOS,b.vkpkoll,b.vkpart,b.vkpfarbe,B.VKPKDARTNR,B.VKPKDFARBNR,b.vkpmenge1*0.01 as qty, "
                + " to_number(b.vkppreis)*0.001 as price,b.vkpmeeh,b.vkpliefterm as deldat,v.vaabrtvon*0.01 as width,v.vaagewvon*0.01 as weight,V.VAABEZ,  "
                + " W.WAFBRTU*0.1 AS TOTWID,W.WAFBRTL*0.1 AS WID,W.WAFGRLFD AS GM,W.WAFGRQM AS SQM, "
                + " trim(v.vaafiller) as comp,b.vkpmenge1*0.01*to_number(b.vkppreis)*0.001+(c.vkzzuabproz1+c.vkzzuabproz2+c.vkzzuabproz3+c.vkzzuabproz4+c.vkzzuabproz5)*0.0001*b.vkpmenge1*0.01*to_number(b.vkppreis)*0.001+  "
                + " (c.vkzzuabwert1+c.vkzzuabwert2+c.vkzzuabwert3+c.vkzzuabwert4+c.vkzzuabwert5)*0.01 -  "
                + " (c.vkzrabproz1+c.vkzrabproz2+c.vkzrabproz3+c.vkzrabproz4+c.vkzrabproz5)*0.0001*b.vkpmenge1*0.01*to_number(b.vkppreis)*0.001-  "
                + " (c.vkzverpwert1+c.vkzverpwert2+c.vkzverpwert3+c.vkzverpwert4+c.vkzverpwert5)*0.01 as value,  "
                + " decode(c.vkzzuart1,'   ','',(select trim(substr(sddaten,52,10)) from sddat where sdsa = '0255'   "
                + " and substr(sdkey,3,3)=c.vkzzuart1)||decode(c.vkzzuabproz1,0,to_char(c.vkzzuabwert1*0.01)||'  ',c.vkzzuabproz1*0.01||'%  '))|| "
                + " decode(c.vkzzuart2,'   ','',(select trim(substr(sddaten,52,10)) from sddat where sdsa = '0255'   "
                + " and substr(sdkey,3,3)=c.vkzzuart2)||decode(c.vkzzuabproz2,0,to_char(c.vkzzuabwert2*0.01)||'  ',c.vkzzuabproz2*0.01||'%  '))|| "
                + " decode(c.vkzzuart3,'   ','',(select trim(substr(sddaten,52,10)) from sddat where sdsa = '0255'   "
                + " and substr(sdkey,3,3)=c.vkzzuart3)||decode(c.vkzzuabproz3,0,to_char(c.vkzzuabwert3*0.01)||'  ',c.vkzzuabproz3*0.01||'%  '))|| "
                + " decode(c.vkzzuart4,'   ','',(select trim(substr(sddaten,52,10)) from sddat where sdsa = '0255'   "
                + " and substr(sdkey,3,3)=c.vkzzuart4)||decode(c.vkzzuabproz4,0,to_char(c.vkzzuabwert4*0.01)||'  ',c.vkzzuabproz4*0.01||'%  '))|| "
                + " decode(c.vkzzuart5,'   ','',(select trim(substr(sddaten,52,10)) from sddat where sdsa = '0255'   "
                + " and substr(sdkey,3,3)=c.vkzzuart5)||decode(c.vkzzuabproz5,0,to_char(c.vkzzuabwert5*0.01)||'  ',c.vkzzuabproz5*0.01||'%  ')) AS SUR, "
                + " decode(c.vkzrabart1,'   ','',(select trim(substr(sddaten,52,10)) from sddat where sdsa = '0243'   "
                + " and substr(sdkey,3,3)=c.vkzrabart1)||decode(c.vkzrabproz1,0,to_char(c.vkzverpwert1*0.01)||'  ',c.vkzrabproz1*0.01||'%  '))|| "
                + " decode(c.vkzrabart2,'   ','',(select trim(substr(sddaten,52,10)) from sddat where sdsa = '0243'   "
                + " and substr(sdkey,3,3)=c.vkzrabart2)||decode(c.vkzrabproz2,0,to_char(c.vkzverpwert2*0.01)||'  ',c.vkzrabproz2*0.01||'%  '))|| "
                + " decode(c.vkzrabart3,'   ','',(select trim(substr(sddaten,52,10)) from sddat where sdsa = '0243'   "
                + " and substr(sdkey,3,3)=c.vkzrabart3)||decode(c.vkzrabproz3,0,to_char(c.vkzverpwert3*0.01)||'  ',c.vkzrabproz3*0.01||'%  '))|| "
                + " decode(c.vkzrabart4,'   ','',(select trim(substr(sddaten,52,10)) from sddat where sdsa = '0243'   "
                + " and substr(sdkey,3,3)=c.vkzrabart4)||decode(c.vkzrabproz4,0,to_char(c.vkzverpwert4*0.01)||'  ',c.vkzrabproz4*0.01||'%  '))|| "
                + " decode(c.vkzrabart5,'   ','',(select trim(substr(sddaten,52,10)) from sddat where sdsa = '0243'   "
                + " and substr(sdkey,3,3)=c.vkzrabart5)||decode(c.vkzrabproz5,0,to_char(c.vkzverpwert5*0.01)||'  ',c.vkzrabproz5*0.01||'%  ')) AS DIS,  "
                + " (SELECT (X.LSLIEFNA) FROM LIEFDAT X WHERE X.LSMANDANT = W.WAMANDANT AND X.LSLIEFNR = W.WALIEFNR) AS SUPP, "
                + " (select stragg(trim(txtktext)) from txtind t1,txtkon t2 where t1.txtimandant = t2.txtkmandant "
                + " and t1.txtipind = t2.txtkpind and TRIM(t1.txtisind) = B.VKPAUFKRS||B.VKPAUFLFD||B.VKPAUFPOS||'VKT') as REMARK "
                + " FROM VKPOS B,VKZUAB C,VAART V,WASTAMM W "
                + " WHERE B.VKPMANDANT = :VKPMANDANT: AND B.VKPAUFKRS=:VKPAUFKRS: AND B.VKPAUFLFD=:VKPAUFLFD: AND B.VKPSA = '  '   "
                + " AND B.VKPMANDANT = C.VKZMANDANT AND B.VKPAUFKRS = C.VKZAUFKRS AND B.VKPAUFLFD = C.VKZAUFLFD  "
                + " AND B.VKPAUFPOS = C.VKZAUFPOS AND C.VKZSA = 'VK'  "
                + " AND B.VKPMANDANT = V.VAAMANDANT AND B.VKPKOLL = V.VAAKOLL AND B.VKPART = V.VAAART "
                + " AND V.VAAMANDANT = W.WAMANDANT(+) AND V.VAADART = W.WAART(+) AND V.VAADVAR = W.WAVAR(+) "
                + " order by vkpaufpos ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP27(DataRow dwData)
        {
            or1 = or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPKKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPMEEH,VKPLIEFTERM,KDKNAME,DESCR,ARTNAME,VAABRTVON,VAABRTBIS,SUM(AYARD) AS AYARD,SUM(BYARD) AS BYARN,SUM(YARD) AS YARD,ROUND(AVG(NVL(ROUND(DECODE(NVL(AVGWID, 0),0,0,NVL(DQ, 0) * 36 / AVGWID / YARD * 100),1),0)),0) AS AVGRATE "
                + " FROM (SELECT VKPKKOLL, V.VKPART AS VKPART,V.VKPFARBE AS VKPFARBE,V.VKPMENGE1 * 0.01 AS VKPMENGE1,V.VKPMEEH, VKPLIEFTERM,K.KDKNAME,VAABRTVON,VAABRTBIS, "
                + " (select nvl(TRIM(T2.TXTKTEXT), VAABEZ) from txtind T1, TXTKON T2 where T1.txtitxtart = 'VAD' AND T1.TXTIMANDANT = T2.TXTKMANDANT AND T1.TXTIPIND = T2.TXTKPIND AND TRIM(T1.TXTISIND) = a.vaakoll || trim(a.vaaart)) AS DESCR, "
                + " (select substr(sddaten, 2, 20) from sddat where sdsa = '0178' and substr(sdkey, 24, 1) = 'V' and substr(sddaten, 1, 1) = 'A' and substr(sdkey, 3, 3) = VAAARTGRP) as ARTNAME, "
                + " DECODE(V.VKPMEEH,'YRD', DECODE(W.WBBZENSUR,'1',round(W.wbbistklg * 0.001 / 0.9144, 1)),DECODE(W.WBBZENSUR,'1',round(W.wbbistklg * 0.001, 1))) AS AYARD, "
                + " DECODE(V.VKPMEEH,'YRD', DECODE(W.WBBZENSUR,'2',round(W.wbbistklg * 0.001 / 0.9144, 1)),DECODE(W.WBBZENSUR,'2',round(W.wbbistklg * 0.001, 1))) AS BYARD, "
                + " DECODE(V.VKPMEEH,'YRD',round(W.wbbistklg * 0.001 / 0.9144, 1),round(W.wbbistklg * 0.001, 1)) AS YARD, "
                + " (SELECT sum(DECODE(SUBSTR(X.WBFFSCHL, 3, 1),'A',1,'B', 2,'C',3,'D',4)) FROM WBFEHL X WHERE W.wbbmandant = X.WBFMANDANT AND W.wbbrwkrs = X.WBFRWKRS "
                + " AND W.wbbrwlfd = X.WBFRWLFD AND W.wbbpos = X.WBFRWPOS AND X.WBFVERSION = '1' AND x.wbffschl < '900') AS dq,(SELECT round(avg(WBFBRTVON * 0.001), 1) FROM WBFEHL X "
                + " WHERE W.wbbmandant = X.WBFMANDANT AND W.wbbrwkrs = X.WBFRWKRS AND W.wbbrwlfd = X.WBFRWLFD AND W.wbbpos = X.WBFRWPOS AND X.WBFVERSION = '1' AND X.WBFBRTVON > 40000) as avgwid "
                + " FROM VKPOS V,VAART A,KDSTAMM K,WBBST W "
                + " WHERE V.VKPSA = '  ' AND V.VKPMANDANT = A.VAAMANDANT AND V.VKPKOLL = A.VAAKOLL AND V.VKPART = A.VAAART AND V.VKPMANDANT = K.KDMANDANT "
                + " AND V.VKPKUNDNR = K.KDKUNDNR and V.VKPART LIKE '" + dwData["VKPART"].ToString() + "%' AND V.VKPMANDANT ='00' AND A.vaamandant = W.wbbmandant and A.vaadart = W.wbbart "
                + " and V.vkpfarbe = W.wbbfarbe AND W.wbbwakz = 'F' AND W.wbblb IN ('CP', 'CW', 'KO') and W.wbbistklg > 0) "
                + " GROUP BY VKPKKOLL,VKPART,VKPFARBE,VKPMENGE1,VKPMEEH,VKPLIEFTERM,KDKNAME,DESCR,VAABRTVON,VAABRTBIS,ARTNAME "
                + " ORDER BY VKPFARBE ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QVKP28(DataRow dwData)
        {
            or1 = or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT A.VKPART,A.VKPFARBE,A.VKPMENGE1*0.01 AS VKPMENGE1,A.VKPMEEH,A.VKPOFFEN,A.VKPMEEH,A.VKPLIEFTERM,B.VKKLIEFBED AS VKPOSACHB,C.KDKUNDNA,B.VKKSACHBE,D.REMARK As DESCR FROM VKPOS A"
                + " LEFT JOIN VKKOPF B ON A.VKPAUFKRS=B.VKKAUFKRS AND A.VKPAUFLFD=B.VKKAUFLFD  "
                + " LEFT JOIN KDSTAMM C ON B.VKKKUNDNR=C.KDKUNDNR "
                + " LEFT JOIN ICC_VKPRICE D ON A.VKPART=D.VKPART "
            + " WHERE  A.VKPAUFKRS LIKE '%J%' AND A.VKPSA='  ' AND A.VKPWUTERM BETWEEN '" + dwData["VKPAENDDAT"] + "' AND '" + dwData["VKPNEUDAT"] + "'";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }

        public DataSet QVKP29(DataRow dwData)
        {
            or1 = or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT GSGARNNR*0.0001 AS YNE,GSFACH,P.* FROM VKPOS M JOIN ABPOS P ON VKPSA = '  ' AND VKPMANDANT = ABPMANDANT AND VKPEXAUFKRS = ABPAUFKRS AND VKPEXAUFLFD = ABPAUFLFD AND VKPEXAUFPOS = ABPAUFPOS"
                + " JOIN GSDAT ON GSMANDANT=ABPMANDANT AND RTRIM(GSART)=RTRIM(VKPART)  "
                + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPAUFKRS =:VKPAUFKRS: AND VKPAUFLFD = :VKPAUFLFD: AND ABPPOSTYP='HM '"
                + dwData["VKPAUFPOS"].ToString()
                + " ORDER BY ABPAUFKRS,ABPAUFLFD,ABPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult; 
        }
        public DataSet QVKP30(DataRow dwData)
        {
            or1 = or1 = OracleDB.CreateCommand();
            /*
            or1.CommandText = "SELECT GSGARNNR * 0.0001 AS YNE, GSFACH, P.*,ABKARTSB,M.VKPMANDANT,M.VKPAUFKRS,M.VKPAUFLFD,M.VKPAUFPOS,M.VKPEXAUFKRS,M.VKPEXAUFLFD,M.VKPEXAUFPOS,M.VKPEXART  FROM VKPOS M"
                + " JOIN ABAUFM A ON VKPMANDANT =ABAMANDANT  AND VKPEXAUFKRS=ABAAUFKRS  AND VKPEXAUFLFD=ABAAUFLFD  "
                + " JOIN ABPOS P ON ABAMANDANT = ABPMANDANT AND ABAAUFKRS = ABPAUFKRS  AND ABAAUFLFD = ABPAUFLFD"
                + " JOIN ABKOPF K ON ABKMANDANT = ABPMANDANT AND ABKAUFKRS = ABPAUFKRS  AND ABKAUFLFD = ABPAUFLFD"
                + " JOIN GSDAT ON GSMANDANT = ABPMANDANT  AND RTRIM(GSART) = RTRIM(VKPART)"
                + " WHERE VKPMANDANT = :VKPMANDANT:  AND VKPAUFKRS = :VKPAUFKRS:  AND VKPAUFLFD = :VKPAUFLFD: AND VKPSA = '  ' AND ABAVKAUFTYP='K' AND ABPPOSTYP='HM '"
                + " AND VKPEXART NOT LIKE'3.%' AND VKPEXART NOT LIKE'2.%'"
                + dwData["VKPAUFPOS"].ToString()
                + " ORDER BY ABPAUFKRS, ABPAUFLFD, ABPAUFPOS";
            */
            or1.CommandText="SELECT GSGARNNR * 0.0001 AS YNE, GSFACH, ABKARTSB,P.*,M.VKPMANDANT,M.VKPAUFKRS,M.VKPAUFLFD,M.VKPAUFPOS,M.VKPEXAUFKRS,M.VKPEXAUFLFD,M.VKPEXAUFPOS,M.VKPEXART" 
               + " FROM ABAUFM X   "
               + " JOIN (SELECT ABAMANDANT, ABAAUFKRS,ABAAUFLFD,ABAAUFPOS,ABAVKAUFKRS,ABAVKAUFLFD,ABAVKAUFPOS     FROM ABAUFM WHERE ABAAUFKRS='FB' AND ABAMANDANT=:VKPMANDANT: AND  ABAVKAUFKRS=:VKPAUFKRS:  AND ABAVKAUFLFD=:VKPAUFLFD: "+dwData["VKPAUFPOS"].ToString()+" ) Z"
               + " ON X.ABAVKAUFKRS=Z.ABAAUFKRS AND X.ABAVKAUFLFD=Z.ABAAUFLFD "//AND X.ABAVKAUFPOS=Z.ABAAUFPOS"  
               + " JOIN VKPOS M ON VKPMANDANT=Z.ABAMANDANT AND VKPSA='  ' AND VKPAUFKRS=Z.ABAVKAUFKRS AND VKPAUFLFD=Z.ABAVKAUFLFD AND VKPAUFPOS=Z.ABAVKAUFPOS  and vkpexart not like'%.%' "
               + " JOIN ABPOS P ON ABPAUFKRS=X.ABAAUFKRS AND ABPAUFLFD=X.ABAAUFLFD AND ABPAUFPOS=X.ABAAUFPOS AND ABPAUFPOS NOT IN ('020','030')"
               + " JOIN ABKOPF K     ON ABKMANDANT = ABPMANDANT   AND ABKAUFKRS = ABPAUFKRS   AND ABKAUFLFD = ABPAUFLFD"
               + " JOIN GSDAT     ON GSMANDANT = ABPMANDANT   AND RTRIM(GSART) = RTRIM(VKPART)";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP31(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPMANDANT,VKPKOLL,VKPAUFKRS,VKPAUFLFD, trim(VKPART) as VKPART,TRIM(vkpkdkomm) AS VKPKDKOMM,VKPLIEFTERM,KDKUNDNA FROM VKPOS P  "
                      + " left join vkkopf F on P.VKPMANDANT=F.VKKMANDANT AND P.VKPAUFKRS=F.VKKAUFKRS AND P.VKPAUFLFD=F.VKKAUFLFD"
                      + " LEFT JOIN KDSTAMM K ON F.VKKMANDANT=K.KDMANDANT AND F.VKKKUNDNR=K.KDKUNDNR WHERE "
                      + "  VKPMANDANT=:VKPMANDANT: AND VKPSA ='  '   "
                      + dwData["VKPAUFKRS"].ToString()
                         + dwData["VKPART"].ToString()
                      ;
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);

            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
       
        public DataSet QVKP_2(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT SUBSTR(VKPKDBEZ,21,10) AS YARNTYP FROM VKPOS M ";
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP_3(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPSACHBE  AS SACHBE FROM VKPOS M ";
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP_4(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPKDKOMM  AS KDKOMM FROM VKPOS M ";
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP_5(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT VKPPOSTYP  AS VKPPOSTYP,VKPPOSTYP AS DES FROM VKPOS M ";
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP99(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPPREIS*0.001*VKPMENGE1*0.01 AS BUVALUE,P.* FROM VKPOS P WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA ='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QVKP4ERL(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT VKPMANDANT,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,VKPERL,VKPEZEIT,VKPERLDAT,VKPERLDAT,VKPMENGE1,VKPVERS,VKPZUSATZ,VKPPREIS,VKPPREHFKT,VKPKURS,VKPMEEHFKT,VKPART,VKPKOLL,VKPFARBE,VKPKUNDNR,ROUND((100*(VKPVERS-VKPMENGE1)/VKPMENGE1),0) AS DIFF FROM VKPOS P "
                       + " WHERE  VKPMANDANT=:VKPMANDANT: AND (VKPSA ='  '  OR VKPSA='IN') AND VKPERL=' 'AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS: AND VKPVERS>0 AND ROUND((100*(VKPVERS-VKPMENGE1)/VKPMENGE1),0)>-5";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public void UpdateVKPOS(DataRow dwData, string ITXDBVERSION = "50.24", int option = 1)
        {
            if (dwData != null)
            {
                dwData["VKPAENDBEN"] = app.User;
                dwData["VKPAENDDAT"] = date;
            }
            if (option == 0)
            {
                switch (app.company)
                {
                    case "YGR":
                    case "SXN":
                    case "TST":
                        option = 8;
                        break;
                    case "JLT":
                        option = 9;
                        break;
                    default:
                        option = 1;
                        break;
                }
            }
            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 1:
                    #region====Command====
                    or1.CommandText = "UPDATE VKPOS SET "
                        + "VKPMANDANT=:VKPMANDANT:,"
                        + "VKPSA=:VKPSA:,"
                        + "VKPAUFKRS=:VKPAUFKRS:,"
                        + "VKPAUFLFD=:VKPAUFLFD:,"
                        + "VKPAUFPOS=:VKPAUFPOS:,"
                        + "VKPAENDST=:VKPAENDST:,"
                        + "VKPAENDZL=VKPAENDZL+1,"
                        + "VKPAENDBEN=:VKPAENDBEN:,"
                        + "VKPAENDDAT=:VKPAENDDAT:,"
                        + "VKPNEUBEN=:VKPNEUBEN:,"
                        + "VKPNEUDAT=:VKPNEUDAT:,"
                        + "VKPPAENDDAT=:VKPPAENDDAT:,"
                        + "VKPPAENPROG=:VKPPAENPROG:,"
                        + "VKPAESTAT=:VKPAESTAT:,"
                        + "VKPVB=:VKPVB:,"
                        + "VKPVG=:VKPVG:,"
                        + "VKPKUNDNR=:VKPKUNDNR:,"
                        + "VKPAUFART=:VKPAUFART:,"
                        + "VKPSACHBE=:VKPSACHBE:,"
                        + "VKPPOSTYP=:VKPPOSTYP:,"
                        + "VKPABWERT=:VKPABWERT:,"
                        + "VKPMUSTER=:VKPMUSTER:,"
                        + "VKPABVK=:VKPABVK:,"
                        + "VKPEIL=:VKPEIL:,"
                        + "VKPEZEIT=:VKPEZEIT:,"
                        + "VKPERL=:VKPERL:,"
                        + "VKPPRODST=:VKPPRODST:,"
                        + "VKPARTST=:VKPARTST:,"
                        + "VKPKOLL=:VKPKOLL:,"
                        + "VKPART=:VKPART:,"
                        + "VKPFARBE=:VKPFARBE:,"
                        + "VKPGROE=:VKPGROE:,"
                        + "VKPZENSUR=:VKPZENSUR:,"
                        + "VKPAUFMART=:VKPAUFMART:,"
                        + "VKPVERPART=:VKPVERPART:,"
                        + "VKPKURZBEZ=:VKPKURZBEZ:,"
                        + "VKPKKOLL=:VKPKKOLL:,"
                        + "VKPKDARTNR=:VKPKDARTNR:,"
                        + "VKPKDBEZ=:VKPKDBEZ:,"
                        + "VKPKDFARBNR=:VKPKDFARBNR:,"
                        + "VKPPRGR=:VKPPRGR:,"
                        + "VKPARTGRP=:VKPARTGRP:,"
                        + "VKPDSACHB=:VKPDSACHB:,"
                        + "VKPZIELGR=:VKPZIELGR:,"
                        + "VKPMENGE1=:VKPMENGE1:,"
                        + "VKPMENGE2=:VKPMENGE2:,"
                        + "VKPRESERV=:VKPRESERV:,"
                        + "VKPZUGET=:VKPZUGET:,"
                        + "VKPFREIGE=:VKPFREIGE:,"
                        + "VKPGAUFBEST=:VKPGAUFBEST:,"
                        + "VKPKOMMISS=:VKPKOMMISS:,"
                        + "VKPFAKT=:VKPFAKT:,"
                        + "VKPVERS=:VKPVERS:,"
                        + "VKPEINGET=:VKPEINGET:,"
                        + "VKPOFFEN=:VKPOFFEN:,"
                        + "VKPMEEH=:VKPMEEH:,"
                        + "VKPMEEHGRP=:VKPMEEHGRP:,"
                        + "VKPMEEHFKT=:VKPMEEHFKT:,"
                        + "VKPMENGE1T1=:VKPMENGE1T1:,"
                        + "VKPMENGE1T2=:VKPMENGE1T2:,"
                        + "VKPMENGE1T3=:VKPMENGE1T3:,"
                        + "VKPMENGE1T4=:VKPMENGE1T4:,"
                        + "VKPRESERVT1=:VKPRESERVT1:,"
                        + "VKPRESERVT2=:VKPRESERVT2:,"
                        + "VKPRESERVT3=:VKPRESERVT3:,"
                        + "VKPRESERVT4=:VKPRESERVT4:,"
                        + "VKPZUGETT1=:VKPZUGETT1:,"
                        + "VKPZUGETT2=:VKPZUGETT2:,"
                        + "VKPZUGETT3=:VKPZUGETT3:,"
                        + "VKPZUGETT4=:VKPZUGETT4:,"
                        + "VKPFREIGET1=:VKPFREIGET1:,"
                        + "VKPFREIGET2=:VKPFREIGET2:,"
                        + "VKPFREIGET3=:VKPFREIGET3:,"
                        + "VKPFREIGET4=:VKPFREIGET4:,"
                        + "VKPGAUFBESTT1=:VKPGAUFBESTT1:,"
                        + "VKPGAUFBESTT2=:VKPGAUFBESTT2:,"
                        + "VKPGAUFBESTT3=:VKPGAUFBESTT3:,"
                        + "VKPGAUFBESTT4=:VKPGAUFBESTT4:,"
                        + "VKPKOMMIST1=:VKPKOMMIST1:,"
                        + "VKPKOMMIST2=:VKPKOMMIST2:,"
                        + "VKPKOMMIST3=:VKPKOMMIST3:,"
                        + "VKPKOMMIST4=:VKPKOMMIST4:,"
                        + "VKPFAKTT1=:VKPFAKTT1:,"
                        + "VKPFAKTT2=:VKPFAKTT2:,"
                        + "VKPFAKTT3=:VKPFAKTT3:,"
                        + "VKPFAKTT4=:VKPFAKTT4:,"
                        + "VKPVERST1=:VKPVERST1:,"
                        + "VKPVERST2=:VKPVERST2:,"
                        + "VKPVERST3=:VKPVERST3:,"
                        + "VKPVERST4=:VKPVERST4:,"
                        + "VKPEINTT1=:VKPEINTT1:,"
                        + "VKPEINTT2=:VKPEINTT2:,"
                        + "VKPEINTT3=:VKPEINTT3:,"
                        + "VKPEINTT4=:VKPEINTT4:,"
                        + "VKPOFFENT1=:VKPOFFENT1:,"
                        + "VKPOFFENT2=:VKPOFFENT2:,"
                        + "VKPOFFENT3=:VKPOFFENT3:,"
                        + "VKPOFFENT4=:VKPOFFENT4:,"
                        + "VKPWVTERM=:VKPWVTERM:,"
                        + "VKPWUTERM=:VKPWUTERM:,"
                        + "VKPFREITERM=:VKPFREITERM:,"
                        + "VKPVERSTERM=:VKPVERSTERM:,"
                        + "VKPLIEFTERM=:VKPLIEFTERM:,"
                        + "VKPLIEFEING=:VKPLIEFEING:,"
                        + "VKPEINTTERM=:VKPEINTTERM:,"
                        + "VKPEINTEING=:VKPEINTEING:,"
                        + "VKPVERZEING1=:VKPVERZEING1:,"
                        + "VKPVERZTERM1=:VKPVERZTERM1:,"
                        + "VKPBESTTERM1=:VKPBESTTERM1:,"
                        + "VKPVERZEING2=:VKPVERZEING2:,"
                        + "VKPVERZTERM2=:VKPVERZTERM2:,"
                        + "VKPBESTTERM2=:VKPBESTTERM2:,"
                        + "VKPVERZEING3=:VKPVERZEING3:,"
                        + "VKPVERZTERM3=:VKPVERZTERM3:,"
                        + "VKPBESTTERM3=:VKPBESTTERM3:,"
                        + "VKPVERZEING4=:VKPVERZEING4:,"
                        + "VKPVERZTERM4=:VKPVERZTERM4:,"
                        + "VKPBESTTERM4=:VKPBESTTERM4:,"
                        + "VKPVERZEING5=:VKPVERZEING5:,"
                        + "VKPVERZTERM5=:VKPVERZTERM5:,"
                        + "VKPBESTTERM5=:VKPBESTTERM5:, "
                        + "VKPPREIS=:VKPPREIS:,"
                        + "VKPPREH=:VKPPREH:,"
                        + "VKPPOSWERT=:VKPPOSWERT:,"
                        + "VKPARTUG=utl_raw.cast_to_raw(:VKPART:), VKPFARBEUG=utl_raw.cast_to_raw(:VKPFARBE:), VKPARTOG=utl_raw.cast_to_raw(:VKPART:),VKPFARBEOG=utl_raw.cast_to_raw(:VKPFARBE:),"
                        + "VKPMGV=:VKPMGV:,"
                        + "VKPMGB=:VKPMGB:,"
                        + "VKPVERSLO=:VKPVERSLO:,"
                        + "VKPWAEHRSL=:VKPWAEHRSL:,"
                        + "VKPBETRAG=:VKPBETRAG:,"
                        + "VKPFAELLIG=:VKPFAELLIG:,"
                        + "VKPFILLER2=:VKPFILLER2: "
                       + " WHERE   VKPMANDANT=:VKPMANDANT:  AND VKPSA=:VKPSA:  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    #endregion

                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    or1 = OracleDB.CreateCommand();
                    #region====Command====

                    or1.CommandText = "UPDATE VKPOS SET "
                + "VKPLVDAT=:VKPLVDAT:,"
                + "VKPEINTVON=:VKPEINTVON:,"
                + "VKPVALUTA=:VKPVALUTA:,"
                + "VKPVALDAT=:VKPVALDAT:,"
                + "VKPLIEFZEIT=:VKPLIEFZEIT:,"
                + "VKPLZEIT=:VKPLZEIT:,"
                + "VKPSTORDAT=:VKPSTORDAT:,"
                + "VKPNACHL=:VKPNACHL:,"
                + "VKPVERTKZ=:VKPVERTKZ:,"
                + "VKPVKNPOS=:VKPVKNPOS:,"
                + "VKPLTERMIN1=:VKPLTERMIN1:,"
                + "VKPLTART1=:VKPLTART1:,"
                + "VKPMENGEP1=:VKPMENGEP1:,"
                + "VKPLTERMIN2=:VKPLTERMIN2:,"
                + "VKPLTART2=:VKPLTART2:,"
                + "VKPMENGEP2=:VKPMENGEP2:,"
                + "VKPLTERMIN3=:VKPLTERMIN3:,"
                + "VKPLTART3=:VKPLTART3:,"
                + "VKPMENGEP3=:VKPMENGEP3:,"
                + "VKPLTERMIN4=:VKPLTERMIN4:,"
                + "VKPLTART4=:VKPLTART4:,"
                + "VKPMENGEP4=:VKPMENGEP4:,"
                + "VKPLTERMIN5=:VKPLTERMIN5:,"
                + "VKPLTART5=:VKPLTART5:,"
                + "VKPMENGEP5=:VKPMENGEP5:,"
                + "VKPSHOE=:VKPSHOE:,"
                + "VKPSLAE=:VKPSLAE:,"
                + "VKPOPTRLAE=:VKPOPTRLAE:,"
                + "VKPOPTART=:VKPOPTART:,"
                + "VKPSPUL=:VKPSPUL:,"
                + "VKPSPULG=:VKPSPULG:,"
                + "VKPSPULGV=:VKPSPULGV:,"
                + "VKPSPULGB=:VKPSPULGB:,"
                + "VKPSPULM=:VKPSPULM:,"
                + "VKPSPULMV=:VKPSPULMV:,"
                + "VKPSPULMB=:VKPSPULMB:,"
                + "VKPSPUL2=:VKPSPUL2:,"
                + "VKPSPULG2=:VKPSPULG2:,"
                + "VKPHUELSE=:VKPHUELSE:,"
                + "VKPKF=:VKPKF:,"
                + "VKPFDRES=:VKPFDRES:,"
                + "VKPWI=:VKPWI:,"
                + "VKPSCHLICHTGR=:VKPSCHLICHTGR:,"
                + "VKPSCHLICHTNR=:VKPSCHLICHTNR:,"
                + "VKPHABR=:VKPHABR:,"
                + "VKPVABR=:VKPVABR:,"
                + "VKPSETKZ=:VKPSETKZ:,"
                + "VKPPRGRP=:VKPPRGRP:,"
                + "VKPLFDNR=:VKPLFDNR:,"
                + "VKPARTPRGR=:VKPARTPRGR:,"
                + "VKPCOUPON=:VKPCOUPON:,"
                + "VKPPREIS=:VKPPREIS:,"
                + "VKPPREH=:VKPPREH:,"
                + "VKPPREHGRP=:VKPPREHGRP:,"
                + "VKPPREHFKT=:VKPPREHFKT:,"
                + "VKPPRKZ=:VKPPRKZ:,"
                + "VKPPREISPRF=:VKPPREISPRF:,"
                + "VKPUGSACHB=:VKPUGSACHB:,"
                + "VKPPRLPREIS=:VKPPRLPREIS:,"
                + "VKPPREISUG=:VKPPREISUG:,"
                + "VKPKONFEKT=:VKPKONFEKT:,"
                + "VKPPOSWERT=:VKPPOSWERT:,"
                + "VKPSTAFFELF=:VKPSTAFFELF:,"
                + "VKPVGUET=:VKPVGUET:,"
                + "VKPSONDERP=:VKPSONDERP:,"
                + "VKPINDEXNA1=:VKPINDEXNA1:,"
                + "VKPINDEXBA1=:VKPINDEXBA1:,"
                + "VKPINDEXWE1=:VKPINDEXWE1:,"
                + "VKPINDEXHS1=:VKPINDEXHS1:,"
                + "VKPINDEXNA2=:VKPINDEXNA2:,"
                + "VKPINDEXBA2=:VKPINDEXBA2:,"
                + "VKPINDEXWE2=:VKPINDEXWE2:,"
                + "VKPINDEXHS2=:VKPINDEXHS2:,"
                + "VKPINDEXNA3=:VKPINDEXNA3:,"
                + "VKPINDEXBA3=:VKPINDEXBA3:,"
                + "VKPINDEXWE3=:VKPINDEXWE3:,"
                + "VKPINDEXHS3=:VKPINDEXHS3:,"
                + "VKPKOAUFKRS=:VKPKOAUFKRS:,"
                + "VKPKOAUFLFD=:VKPKOAUFLFD:,"
                + "VKPKOAUFPOS=:VKPKOAUFPOS:,"
                + "VKPKOAUFART=:VKPKOAUFART:,"
                + "VKPARTPRF=:VKPARTPRF:,"
                + "VKPKZFREI=:VKPKZFREI:,"
                + "VKPFARBGRP=:VKPFARBGRP:,"
                //+ "VKPARTUG=:VKPARTUG:,"
                //+ "VKPFARBEUG=:VKPFARBEUG:,"
                //+ "VKPARTOG=:VKPARTOG:,"
                //+ "VKPFARBEOG=:VKPFARBEOG:,"
                + "VKPIAEDAT=:VKPIAEDAT:,"
                + "VKPEMENGEV=:VKPEMENGEV:,"
                + "VKPEMENGEB=:VKPEMENGEB:,"
                + "VKPPMENGE=:VKPPMENGE:,"
                + "VKPVERTEIL=:VKPVERTEIL:,"
                + "VKPWDECK=:VKPWDECK:,"
                + "VKPKANR=:VKPKANR:,"
                + "VKPKAPOS=:VKPKAPOS:,"
                + "VKPABLGRD=:VKPABLGRD:,"
                + "VKPGELISTET=:VKPGELISTET:,"
                + "VKPKONKURENT=:VKPKONKURENT:,"
                + "VKPKPREIS=:VKPKPREIS:,"
                + "VKPHOCHRECH=:VKPHOCHRECH:,"
                + "VKPERFOLG=:VKPERFOLG:,"
                + "VKPANT=:VKPANT:,"
                + "VKPANTSAV=:VKPANTSAV:,"
                + "VKPSIGNED=:VKPSIGNED:,"
                + "VKPABS=:VKPABS:,"
                + "VKPABRKZ=:VKPABRKZ:,"
                + "VKPNOCOUNT=:VKPNOCOUNT:,"
                + "VKPEXAUFKRS=:VKPEXAUFKRS:,"
                + "VKPEXAUFLFD=:VKPEXAUFLFD:,"
                + "VKPEXAUFPOS=:VKPEXAUFPOS:,"
                + "VKPEXART=:VKPEXART:,"
                + "VKPEXVAR=:VKPEXVAR:,"
                + "VKPEXDESS=:VKPEXDESS:,"
                + "VKPEXCOLORIT=:VKPEXCOLORIT:,"
                + "VKPRAPLG=:VKPRAPLG:,"
                + "VKPRAPWDT=:VKPRAPWDT:,"
                + "VKPGESSTA=:VKPGESSTA:,"
                + "VKPARTSTA=:VKPARTSTA:,"
                + "VKPPRSTA=:VKPPRSTA:,"
                + "VKPBSTSTA=:VKPBSTSTA:,"
                + "VKPTERMSTA=:VKPTERMSTA:,"
                + "VKPMGV=:VKPMGV:,"
                + "VKPMGB=:VKPMGB:,"
                + "VKPMGZU=:VKPMGZU:,"
                + "VKPSTV=:VKPSTV:,"
                + "VKPSTB=:VKPSTB:,"
                + "VKPSTZU=:VKPSTZU:,"
                + "VKPSTLGV=:VKPSTLGV:,"
                + "VKPSTLGB=:VKPSTLGB:,"
                + "VKPPAS=:VKPPAS:,"
                + "VKPPAI=:VKPPAI:,"
                + "VKPTSTS=:VKPTSTS:,"
                + "VKPTSTI=:VKPTSTI:,"
                + "VKPTSTLG=:VKPTSTLG:,"
                + "VKPTSTMAX=:VKPTSTMAX:,"
                + "VKPUBLI=:VKPUBLI:,"
                + "VKPAZUTEIL=:VKPAZUTEIL:,"
                + "VKPERSART=:VKPERSART:,"
                + "VKPZUTART=:VKPZUTART:,"
                + "VKPZSBER=:VKPZSBER:,"
                + "VKPFA=:VKPFA:,"
                + "VKPGA=:VKPGA:,"
                + "VKPQA=:VKPQA:,"
                + "VKPMAART=:VKPMAART:,"
                + "VKPMAFZST=:VKPMAFZST:,"
                + "VKPZUSAM=:VKPZUSAM:,"
                + "VKPZUDOPA=:VKPZUDOPA:,"
                + "VKPZUDPA=:VKPZUDPA:,"
                + "VKPGENEHM=:VKPGENEHM:,"
                + "VKPMUVERT=:VKPMUVERT:,"
                + "VKPZRUECK=:VKPZRUECK:,"
                + "VKPZKDAT=:VKPZKDAT:,"
                + "VKPZKBEN=:VKPZKBEN:,"
                + "VKPSTKNEUTR=:VKPSTKNEUTR:,"
                + "VKPPARTGL=:VKPPARTGL:,"
                + "VKPKONFKZ=:VKPKONFKZ:,"
                + "VKPKETTELN=:VKPKETTELN:,"
                + "VKPRESSACHB=:VKPRESSACHB:,"
                + "VKPLAEVON=:VKPLAEVON:,"
                + "VKPLAEBIS=:VKPLAEBIS:,"
                + "VKPSTDLAE=:VKPSTDLAE:,"
                + "VKPSFERTKZ=:VKPSFERTKZ:,"
                + "VKPREGEL=:VKPREGEL:,"
                + "VKPZUTPRIO=:VKPZUTPRIO:,"
                + "VKPSTAFFNR=:VKPSTAFFNR:,"
                + "VKPMAXPKT=:VKPMAXPKT:,"
                + "VKPANZ1=:VKPANZ1:,"
                + "VKPLAENGE1=:VKPLAENGE1:,"
                + "VKPBREITE1=:VKPBREITE1:,"
                + "VKPANZ2=:VKPANZ2:,"
                + "VKPLAENGE2=:VKPLAENGE2:,"
                + "VKPBREITE2=:VKPBREITE2:,"
                + "VKPANZ3=:VKPANZ3:,"
                + "VKPLAENGE3=:VKPLAENGE3:,"
                + "VKPBREITE3=:VKPBREITE3:,"
                + "VKPANZ4=:VKPANZ4:,"
                + "VKPLAENGE4=:VKPLAENGE4:,"
                + "VKPBREITE4=:VKPBREITE4:,"
                + "VKPANZ5=:VKPANZ5:,"
                + "VKPLAENGE5=:VKPLAENGE5:,"
                + "VKPBREITE5=:VKPBREITE5:,"
                + "VKPFIXMASS=:VKPFIXMASS:,"
                + "VKPURLAND=:VKPURLAND:,"
                + "VKPPRFBEG=:VKPPRFBEG:,"
                + "VKPPRFVKD=:VKPPRFVKD:,"
                + "VKPEINWERK=:VKPEINWERK:,"
                + "VKPWERK=:VKPWERK:,"
                + "VKPQPKTH=:VKPQPKTH:,"
                + "VKPQPKTLH=:VKPQPKTLH:,"
                + "VKPRICHGL=:VKPRICHGL:,"
                + "VKPWSCHTXT=:VKPWSCHTXT:,"
                + "VKPFILLER1=:VKPFILLER1:,"
                + "VKPABRUF=:VKPABRUF:,"
                + "VKPLIEFKOMP=:VKPLIEFKOMP:,"
                + "VKPVERSART=:VKPVERSART:,"
                + "VKPZUSATZ=:VKPZUSATZ:,"
                + "VKPKDKOMM=:VKPKDKOMM:,"
                + "VKPLTEILNR=:VKPLTEILNR:,"
                + "VKPVERSLO=:VKPVERSLO:,"
                + "VKPAUTOFREI=:VKPAUTOFREI:,"
                + "VKPSTRECKE=:VKPSTRECKE:,"
                + "VKPANGETEXT=:VKPANGETEXT:,"
                + "VKPANGEWIE=:VKPANGEWIE:,"
                + "VKPBESTTEXT=:VKPBESTTEXT:,"
                + "VKPBESTWIE=:VKPBESTWIE:,"
                + "VKPLIEFTEXT=:VKPLIEFTEXT:,"
                + "VKPLIEFWIE=:VKPLIEFWIE:,"
                + "VKPRECHTEXT=:VKPRECHTEXT:,"
                + "VKPRECHWIE=:VKPRECHWIE:,"
                + "VKPLVORTEXT=:VKPLVORTEXT:,"
                + "VKPLVORWIE=:VKPLVORWIE:,"
                + "VKPIVVTTEXT=:VKPIVVTTEXT:,"
                + "VKPIVVTWIE=:VKPIVVTWIE:,"
                + "VKPIVDITEXT=:VKPIVDITEXT:,"
                + "VKPIVDIWIE=:VKPIVDIWIE:,"
                + "VKPARTTEXT=:VKPARTTEXT:,"
                + "VKPANGEALLG=:VKPANGEALLG:,"
                + "VKPBESTALLG=:VKPBESTALLG:,"
                + "VKPLIEFALLG=:VKPLIEFALLG:,"
                + "VKPRECHALLG=:VKPRECHALLG:,"
                + "VKPLVORALLG=:VKPLVORALLG:,"
                + "VKPIVVTALLG=:VKPIVVTALLG:,"
                + "VKPIVDIALLG=:VKPIVDIALLG:,"
                + "VKPANL1TXT=:VKPANL1TXT:,"
                + "VKPANL2TXT=:VKPANL2TXT:,"
                + "VKPANL3TXT=:VKPANL3TXT:,"
                + "VKPAGT=:VKPAGT:,"
                + "VKPAUF1=:VKPAUF1:,"
                + "VKPAUF2=:VKPAUF2:,"
                + "VKPAUF3=:VKPAUF3:,"
                + "VKPDISPO=:VKPDISPO:,"
                + "VKPDDBENID=:VKPDDBENID:,"
                + "VKPDDAUFTNR=:VKPDDAUFTNR:,"
                + "VKPEKOLL=:VKPEKOLL:,"
                + "VKPEART=:VKPEART:,"
                + "VKPEFARBE=:VKPEFARBE:,"
                + "VKPLVERD=:VKPLVERD:,"
                + "VKPWOBST=:VKPWOBST:,"
                + "VKPEAKZ=:VKPEAKZ:,"
                + "VKPWAEHRSL=:VKPWAEHRSL:,"
                + "VKPKURS=:VKPKURS:,"
                + "VKPBETRAG=:VKPBETRAG:,"
                + "VKPHWAEHRSL=:VKPHWAEHRSL:,"
                + "VKPHEUROKURS=:VKPHEUROKURS:,"
                + "VKPHEUROKURSVK=:VKPHEUROKURSVK:,"
                + "VKPFEUROKURS=:VKPFEUROKURS:,"
                + "VKPFEUROKURSVK=:VKPFEUROKURSVK:,"
                + "VKPTERMNR=:VKPTERMNR:,"
                + "VKPFAELLIG=:VKPFAELLIG:,"
                + "VKPSICHER=:VKPSICHER:,"
                + "VKPSICHP=:VKPSICHP:,"
                + "VKPAKKRED=:VKPAKKRED:,"
                + "VKPBESTPOS=:VKPBESTPOS:,"
                + "VKPDBLATT=:VKPDBLATT:,"
                + "VKPTBRIEF=:VKPTBRIEF:,"
                + "VKPARTBILD=:VKPARTBILD:,"
                + "VKPFORMAT=:VKPFORMAT:,"
                + "VKPZEUGNIS=:VKPZEUGNIS:,"
                + "VKPPLANKRS=:VKPPLANKRS:,"
                + "VKPPLANLFD=:VKPPLANLFD:,"
                + "VKPRES1=:VKPRES1:,"
                + "VKPRES2=:VKPRES2:,"
                + "VKPVKZUABVH=:VKPVKZUABVH:,"
                + "VKPVKZUSAMP=:VKPVKZUSAMP:,"
                + "VKPVKZUADR=:VKPVKZUADR:,"
                + "VKPFKSPKZ=:VKPFKSPKZ:,"
                + "VKPFKSPRD=:VKPFKSPRD:,"
                + "VKPFKSPTD=:VKPFKSPTD:,"
                + "VKPKREDLIM=:VKPKREDLIM:,"
                + "VKPSWING=:VKPSWING:,"
                + "VKPRAITING=:VKPRAITING:,"
                + "VKPVERSCHL=:VKPVERSCHL:,"
                + "VKPKREDBIS=:VKPKREDBIS:,"
                + "VKPKREDVON=:VKPKREDVON:,"
                + "VKPLUEBKZ=:VKPLUEBKZ:,"
                + "VKPFRDAT=:VKPFRDAT:,"
                + "VKPFRZEIT=:VKPFRZEIT:,"
                + "VKPFRBENID=:VKPFRBENID:,"
                + "VKPFRKZ=:VKPFRKZ:,"
                + "VKPCUSIGNED=:VKPCUSIGNED:,"
                + "VKPSTPROV=:VKPSTPROV:,"
                + "VKPSTFRACHT=:VKPSTFRACHT:,"
                + "VKPSTFRME=:VKPSTFRME:,"
                + "VKPSTIMP=:VKPSTIMP:,"
                + "VKPSTVERS=:VKPSTVERS:,"
                + "VKPSTZOLL=:VKPSTZOLL:,"
                + "VKPFRGRENZ=:VKPFRGRENZ:,"
                + "VKPFRGRME=:VKPFRGRME:,"
                + "VKPVERSGRENZ=:VKPVERSGRENZ:,"
                + "VKPZTARIF=:VKPZTARIF:,"
                + "VKPEDIKZ=:VKPEDIKZ:,"
                + "VKPKOMMNR=:VKPKOMMNR:,"
                + "VKPKOMMPOS=:VKPKOMMPOS:,"
                + "VKPEDIDAT=:VKPEDIDAT:,"
                + "VKPEDIZEIT=:VKPEDIZEIT:,"
                + "VKPURBESTPOS=:VKPURBESTPOS:,"
                + "VKPVERTRNRK=:VKPVERTRNRK:,"
                + "VKPVERTRPOSK=:VKPVERTRPOSK:,"
                + "VKPOPREIS=:VKPOPREIS:,"
                + "VKPOMENGE=:VKPOMENGE:,"
                + "VKPWUTERMKO=:VKPWUTERMKO:,"
                + "VKPKZERSATZ=:VKPKZERSATZ:,"
                + "VKPBUSIMODE=:VKPBUSIMODE:,"
                + "VKPEXMANDANT=:VKPEXMANDANT:,"
                + "VKPRUECKTG=:VKPRUECKTG:,"
                + "VKPLIEFTERMN=:VKPLIEFTERMN:,"
                + "VKPVERARBSTA=:VKPVERARBSTA:,"
                + "VKPCTO=:VKPCTO:,"
                + "VKPVTRNRK2=:VKPVTRNRK2:,"
                + "VKPVTRPOSK2=:VKPVTRPOSK2:,"
                + "VKPAENTIME=:VKPAENTIME:,"
                + "VKPMAINPROG=:VKPMAINPROG:,"
                + "VKPSAMPTYP=:VKPSAMPTYP:,"
                + "VKPUSRSTA=:VKPUSRSTA:,"
                + "VKPACCVERS=:VKPACCVERS:,"
                + "VKPLIART=:VKPLIART:,"
                + "VKPDELTAE=:VKPDELTAE:,"
                + "VKPLIART2=:VKPLIART2:,"
                + "VKPDELTAE2=:VKPDELTAE2:,"
                + "VKPLIART3=:VKPLIART3:,"
                + "VKPDELTAE3=:VKPDELTAE3:,"
                + "VKPLINKMARK=:VKPLINKMARK:,"
                + "VKPFILLER2=:VKPFILLER2:"
                       + " WHERE   VKPMANDANT=:VKPMANDANT:  AND VKPSA=:VKPSA:  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    #endregion

                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 2://VKPPRODST
                    #region====Command====

                    or1.CommandText = "UPDATE VKPOS SET  VKPPRODST=:VKPPRODST:,VKPAENDZL=VKPAENDZL+1"
                    + " WHERE   VKPMANDANT=:VKPMANDANT:  AND VKPSA=:VKPSA:  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    #endregion

                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 3:
                    #region====Command====
                    //VKPVERZEING5对应的格式为DD.MM.YY
                    or1.CommandText = "UPDATE VKPOS SET "
                        + "VKPFREITERM=:VKPLIEFTERM:,"
                        + "VKPVERSTERM=:VKPLIEFTERM:,"
                        + "VKPLIEFEING=:VKPLIEFEING:,"
                        + "VKPLIEFTERM=:VKPLIEFTERM:,"
                            + "VKPGESSTA=:VKPGESSTA:,"
                        + "VKPTERMSTA=:VKPTERMSTA:,"
                        + "VKPVERZEING1=:VKPVERZEING1:,"
                        + "VKPVERZTERM1=:VKPVERZTERM1:,"
                        + "VKPVERZEING2=:VKPVERZEING2:,"
                        + "VKPVERZTERM2=:VKPVERZTERM2:,"
                        + "VKPVERZEING3=:VKPVERZEING3:,"
                        + "VKPVERZTERM3=:VKPVERZTERM3:,"
                        + "VKPVERZEING4=:VKPVERZEING4:,"
                        + "VKPVERZTERM4=:VKPVERZTERM4:,"
                        + "VKPVERZEING5=:VKPVERZEING5:,"
                        + "VKPVERZTERM5=:VKPVERZTERM5:, "
                        + "VKPKKOLL=:VKPKKOLL: ,VKPAENDZL=VKPAENDZL+1"
                       + " WHERE   VKPMANDANT=:VKPMANDANT:  AND VKPSA=:VKPSA:  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    #endregion

                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 4:
                    #region====Command====
                    or1.CommandText = "UPDATE VKPOS SET  VKPFREITERM=:VKPLIEFTERM:, VKPVERSTERM=:VKPLIEFTERM:, VKPLIEFEING=:VKPLIEFEING:, VKPLIEFTERM=:VKPLIEFTERM:, VKPGESSTA=:VKPGESSTA:, VKPTERMSTA=:VKPTERMSTA:,VKPAENDZL=VKPAENDZL+1 "
                       + " WHERE   VKPMANDANT=:VKPMANDANT:  AND VKPSA=:VKPSA:  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    #endregion
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 5:
                    #region====Command====
                    or1.CommandText = "UPDATE VKPOS SET  VKPPRODST=:VKPPRODST:, VKPRESERV=:VKPRESERV:, VKPRESERVT1=:VKPRESERVT1:, VKPRESERVT2=:VKPRESERVT2:, VKPRESERVT3=:VKPRESERVT3:, VKPRESERVT4=:VKPRESERVT4: ,VKPAENDZL=VKPAENDZL+1"
                       + " WHERE   VKPMANDANT=:VKPMANDANT:  AND VKPSA=:VKPSA:  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    #endregion

                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 6:
                    #region====Command====
                    or1.CommandText = "UPDATE VKPOS SET  VKPRESERV=:VKPRESERV:, VKPRESERVT4=:VKPRESERVT4: ,VKPAENDZL=VKPAENDZL+1"
                       + " WHERE    VKPMANDANT=:VKPMANDANT:  AND VKPSA='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    #endregion
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 7:
                    #region====Command====
                    or1.CommandText = "UPDATE VKPOS SET (VKPZUGET,VKPZUGETT4)=(SELECT SUM(GAKG5),SUM(GAKG5) FROM GAAUF WHERE GAMANDANT=VKPMANDANT AND GAAUFKRS=VKPAUFKRS AND GAAUFLFD=VKPAUFLFD AND GAAUFPOS=VKPAUFPOS AND GASA=610 AND VKPSA='  ')"
                        + " WHERE VKPMANDANT=:VKPMANDANT: AND  VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS: AND VKPSA='  '"
                        + " AND EXISTS (SELECT 1 FROM GAAUF WHERE GAMANDANT=VKPMANDANT AND GAAUFKRS=VKPAUFKRS AND GAAUFLFD=VKPAUFLFD AND GAAUFPOS=VKPAUFPOS AND GASA=610 AND VKPSA='  ')";
                    #endregion
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 8:
                    or1.CommandText = "UPDATE VKPOS SET VKPMANDANT=:VKPMANDANT:,VKPSA=:VKPSA:,VKPAUFKRS=:VKPAUFKRS:,VKPAUFLFD=:VKPAUFLFD:,VKPAUFPOS=:VKPAUFPOS:,VKPAENDST=:VKPAENDST:,VKPAENDZL=VKPAENDZL+1,VKPAENDBEN=:VKPAENDBEN:,VKPAENDDAT=:VKPAENDDAT:,VKPNEUBEN=:VKPNEUBEN:,VKPNEUDAT=:VKPNEUDAT:,VKPPAENDDAT=:VKPPAENDDAT:,VKPPAENPROG=:VKPPAENPROG:,VKPAESTAT=:VKPAESTAT:,VKPVB=:VKPVB:,VKPVG=:VKPVG:,VKPKUNDNR=:VKPKUNDNR:,VKPAUFART=:VKPAUFART:,VKPSACHBE=:VKPSACHBE:,VKPPOSTYP=:VKPPOSTYP:,VKPABWERT=:VKPABWERT:,VKPMUSTER=:VKPMUSTER:,VKPABVK=:VKPABVK:,VKPEIL=:VKPEIL:,VKPEZEIT=:VKPEZEIT:,VKPERL=:VKPERL:,VKPERLDAT=:VKPERLDAT:,VKPERLBEN=:VKPERLBEN:,VKPPRODST=:VKPPRODST:,VKPARTST=:VKPARTST:,VKPKOLL=:VKPKOLL:,VKPART=:VKPART:,VKPFARBE=:VKPFARBE:,VKPGROE=:VKPGROE:,VKPZENSUR=:VKPZENSUR:,VKPAUFMART=:VKPAUFMART:,VKPVERPART=:VKPVERPART:,VKPKURZBEZ=:VKPKURZBEZ:,VKPKKOLL=:VKPKKOLL:,VKPKDARTNR=:VKPKDARTNR:,VKPKDBEZ=:VKPKDBEZ:,VKPKDFARBNR=:VKPKDFARBNR:,VKPPRGR=:VKPPRGR:,VKPARTGRP=:VKPARTGRP:,VKPDSACHB=:VKPDSACHB:,VKPZIELGR=:VKPZIELGR:,VKPMENGE1=:VKPMENGE1:,VKPMENGE2=:VKPMENGE2:,VKPRESERV=:VKPRESERV:,VKPZUGET=:VKPZUGET:,VKPFREIGE=:VKPFREIGE:,VKPGAUFBEST=:VKPGAUFBEST:,VKPKOMMISS=:VKPKOMMISS:,VKPFAKT=:VKPFAKT:,VKPVERS=:VKPVERS:,VKPEINGET=:VKPEINGET:,VKPOFFEN=:VKPOFFEN:,VKPMEEH=:VKPMEEH:,VKPMEEHGRP=:VKPMEEHGRP:,VKPMEEHFKT=:VKPMEEHFKT:,VKPMENGE1T1=:VKPMENGE1T1:,VKPMENGE1T2=:VKPMENGE1T2:,VKPMENGE1T3=:VKPMENGE1T3:,VKPMENGE1T4=:VKPMENGE1T4:,VKPRESERVT1=:VKPRESERVT1:,VKPRESERVT2=:VKPRESERVT2:,VKPRESERVT3=:VKPRESERVT3:,VKPRESERVT4=:VKPRESERVT4:,VKPZUGETT1=:VKPZUGETT1:,VKPZUGETT2=:VKPZUGETT2:,VKPZUGETT3=:VKPZUGETT3:,VKPZUGETT4=:VKPZUGETT4:,VKPFREIGET1=:VKPFREIGET1:,VKPFREIGET2=:VKPFREIGET2:,VKPFREIGET3=:VKPFREIGET3:,VKPFREIGET4=:VKPFREIGET4:,VKPGAUFBESTT1=:VKPGAUFBESTT1:,VKPGAUFBESTT2=:VKPGAUFBESTT2:,VKPGAUFBESTT3=:VKPGAUFBESTT3:,VKPGAUFBESTT4=:VKPGAUFBESTT4:,VKPKOMMIST1=:VKPKOMMIST1:,VKPKOMMIST2=:VKPKOMMIST2:,VKPKOMMIST3=:VKPKOMMIST3:,VKPKOMMIST4=:VKPKOMMIST4:,VKPFAKTT1=:VKPFAKTT1:,VKPFAKTT2=:VKPFAKTT2:,VKPFAKTT3=:VKPFAKTT3:,VKPFAKTT4=:VKPFAKTT4:,VKPVERST1=:VKPVERST1:,VKPVERST2=:VKPVERST2:,VKPVERST3=:VKPVERST3:,VKPVERST4=:VKPVERST4:,VKPEINTT1=:VKPEINTT1:,VKPEINTT2=:VKPEINTT2:,VKPEINTT3=:VKPEINTT3:,VKPEINTT4=:VKPEINTT4:,VKPOFFENT1=:VKPOFFENT1:,VKPOFFENT2=:VKPOFFENT2:,VKPOFFENT3=:VKPOFFENT3:,VKPOFFENT4=:VKPOFFENT4:,VKPWVTERM=:VKPWVTERM:,VKPWUTERM=:VKPWUTERM:,VKPFREITERM=:VKPFREITERM:,VKPVERSTERM=:VKPVERSTERM:,VKPLIEFTERM=:VKPLIEFTERM:,VKPLIEFEING=:VKPLIEFEING:,VKPEINTTERM=:VKPEINTTERM:,VKPEINTEING=:VKPEINTEING:,VKPVERZEING1=:VKPVERZEING1:,VKPVERZTERM1=:VKPVERZTERM1:,VKPBESTTERM1=:VKPBESTTERM1:,VKPVERZEING2=:VKPVERZEING2:,VKPVERZTERM2=:VKPVERZTERM2:,VKPBESTTERM2=:VKPBESTTERM2:,VKPVERZEING3=:VKPVERZEING3:,VKPVERZTERM3=:VKPVERZTERM3:,VKPBESTTERM3=:VKPBESTTERM3:,VKPVERZEING4=:VKPVERZEING4:,VKPVERZTERM4=:VKPVERZTERM4:,VKPBESTTERM4=:VKPBESTTERM4:,VKPVERZEING5=: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:VKPPRGRP:,VKPLFDNR=:VKPLFDNR:,VKPARTPRGR=:VKPARTPRGR:,VKPCOUPON=:VKPCOUPON:,VKPPREIS=:VKPPREIS:,VKPPREH=:VKPPREH:,VKPPREHGRP=:VKPPREHGRP:,VKPPREHFKT=:VKPPREHFKT:,VKPPRKZ=:VKPPRKZ:,VKPPREISPRF=:VKPPREISPRF:,VKPUGSACHB=:VKPUGSACHB:,VKPPRLPREIS=:VKPPRLPREIS:,VKPPREISUG=:VKPPREISUG:,VKPKONFEKT=:VKPKONFEKT:,VKPPOSWERT=:VKPPOSWERT:,VKPSTAFFELF=:VKPSTAFFELF:,VKPVGUET=:VKPVGUET:,VKPSONDERP=:VKPSONDERP:,VKPINDEXNA1=:VKPINDEXNA1:,VKPINDEXBA1=:VKPINDEXBA1:,VKPINDEXWE1=:VKPINDEXWE1:,VKPINDEXHS1=:VKPINDEXHS1:,VKPINDEXNA2=:VKPINDEXNA2:,VKPINDEXBA2=:VKPINDEXBA2:,VKPINDEXWE2=:VKPINDEXWE2:,VKPINDEXHS2=:VKPINDEXHS2:,VKPINDEXNA3=:VKPINDEXNA3:,VKPINDEXBA3=:VKPINDEXBA3:,VKPINDEXWE3=:VKPINDEXWE3:,VKPINDEXHS3=:VKPINDEXHS3:,VKPKOAUFKRS=:VKPKOAUFKRS:,VKPKOAUFLFD=:VKPKOAUFLFD:,VKPKOAUFPOS=:VKPKOAUFPOS:,VKPKOAUFART=:VKPKOAUFART:,VKPARTPRF=:VKPARTPRF:,VKPKZFREI=:VKPKZFREI:,VKPFARBGRP=:VKPFARBGRP:,VKPARTUG=utl_raw.cast_to_raw(:VKPART:),VKPFARBEUG=utl_raw.cast_to_raw(:VKPFARBE:),VKPARTOG=utl_raw.cast_to_raw(:VKPART:),VKPFARBEOG=utl_raw.cast_to_raw(:VKPFARBE:),VKPIAEDAT=:VKPIAEDAT:,VKPEMENGEV=:VKPEMENGEV:,VKPEMENGEB=:VKPEMENGEB:,VKPPMENGE=:VKPPMENG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KPMMIN=:VKPMMIN:,VKPFILLER2=:VKPFILLER2:"
                        + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA=:VKPSA: AND  VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 9:
                    or1.CommandText = "UPDATE VKPOS SET VKPMANDANT=:VKPMANDANT:,VKPSA=:VKPSA:,VKPAUFKRS=:VKPAUFKRS:,VKPAUFLFD=:VKPAUFLFD:,VKPAUFPOS=:VKPAUFPOS:,VKPAENDST=:VKPAENDST:,VKPAENDZL=VKPAENDZL+1,VKPAENDBEN=:VKPAENDBEN:,VKPAENDDAT=:VKPAENDDAT:,VKPNEUBEN=:VKPNEUBEN:,VKPNEUDAT=:VKPNEUDAT:,VKPPAENDDAT=:VKPPAENDDAT:,VKPPAENPROG=:VKPPAENPROG:,VKPAESTAT=:VKPAESTAT:,VKPVB=:VKPVB:,VKPVG=:VKPVG:,VKPKUNDNR=:VKPKUNDNR:,VKPAUFART=:VKPAUFART:,VKPSACHBE=:VKPSACHBE:,VKPPOSTYP=:VKPPOSTYP:,VKPABWERT=:VKPABWERT:,VKPMUSTER=:VKPMUSTER:,VKPABVK=:VKPABVK:,VKPEIL=:VKPEIL:,VKPEZEIT=:VKPEZEIT:,VKPERL=:VKPERL:,VKPERLDAT=:VKPERLDAT:,VKPERLBEN=:VKPERLBEN:,VKPPRODST=:VKPPRODST:,VKPARTST=:VKPARTST:,VKPKOLL=:VKPKOLL:,VKPART=:VKPART:,VKPFARBE=:VKPFARBE:,VKPGROE=:VKPGROE:,VKPZENSUR=:VKPZENSUR:,VKPAUFMART=:VKPAUFMART:,VKPVERPART=:VKPVERPART:,VKPKURZBEZ=:VKPKURZBEZ:,VKPKKOLL=:VKPKKOLL:,VKPKDARTNR=:VKPKDARTNR:,VKPKDBEZ=:VKPKDBEZ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KTT4=:VKPFAKTT4:,VKPVERST1=:VKPVERST1:,VKPVERST2=:VKPVERST2:,VKPVERST3=:VKPVERST3:,VKPVERST4=:VKPVERST4:,VKPEINTT1=:VKPEINTT1:,VKPEINTT2=:VKPEINTT2:,VKPEINTT3=:VKPEINTT3:,VKPEINTT4=:VKPEINTT4:,VKPOFFENT1=:VKPOFFENT1:,VKPOFFENT2=:VKPOFFENT2:,VKPOFFENT3=:VKPOFFENT3:,VKPOFFENT4=:VKPOFFENT4:,VKPWVTERM=:VKPWVTERM:,VKPWUTERM=:VKPWUTERM:,VKPFREITERM=:VKPFREITERM:,VKPVERSTERM=:VKPVERSTERM:,VKPLIEFTERM=:VKPLIEFTERM:,VKPLIEFEING=:VKPLIEFEING:,VKPEINTTERM=:VKPEINTTERM:,VKPEINTEING=:VKPEINTEING:,VKPVERZEING1=:VKPVERZEING1:,VKPVERZTERM1=:VKPVERZTERM1:,VKPBESTTERM1=:VKPBESTTERM1:,VKPVERZEING2=:VKPVERZEING2:,VKPVERZTERM2=:VKPVERZTERM2:,VKPBESTTERM2=:VKPBESTTERM2:,VKPVERZEING3=:VKPVERZEING3:,VKPVERZTERM3=:VKPVERZTERM3:,VKPBESTTERM3=:VKPBESTTERM3:,VKPVERZEING4=:VKPVERZEING4:,VKPVERZTERM4=:VKPVERZTERM4:,VKPBESTTERM4=:VKPBESTTERM4:,VKPVERZEING5=:VKPVERZEING5:,VKPVERZTERM5=:VKPVERZTERM5:,VKPBESTTERM5=:VKPBESTTERM5:,VKPLVDAT=:VKPLVDAT:,VKPEINTVON=:VKPEINTVON:,VKPVALUTA=:VKPVALUTA:,VKPVALDAT=:VKPVALDAT:,VKPLIEFZEIT=:VKPLIEFZEIT:,VKPLZEIT=:VKPLZEIT:,VKPSTORDAT=:VKPSTORDAT:,VKPNACHL=:VKPNACHL:,VKPVERTKZ=:VKPVERTKZ:,VKPVKNPOS=:VKPVKNPOS:,VKPLTERMIN1=:VKPLTERMIN1:,VKPLTART1=:VKPL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STAFFELF=:VKPSTAFFELF:,VKPVGUET=:VKPVGUET:,VKPSONDERP=:VKPSONDERP:,VKPINDEXNA1=:VKPINDEXNA1:,VKPINDEXBA1=:VKPINDEXBA1:,VKPINDEXWE1=:VKPINDEXWE1:,VKPINDEXHS1=:VKPINDEXHS1:,VKPINDEXNA2=:VKPINDEXNA2:,VKPINDEXBA2=:VKPINDEXBA2:,VKPINDEXWE2=:VKPINDEXWE2:,VKPINDEXHS2=:VKPINDEXHS2:,VKPINDEXNA3=:VKPINDEXNA3:,VKPINDEXBA3=:VKPINDEXBA3:,VKPINDEXWE3=:VKPINDEXWE3:,VKPINDEXHS3=:VKPINDEXHS3:,VKPKOAUFKRS=:VKPKOAUFKRS:,VKPKOAUFLFD=:VKPKOAUFLFD:,VKPKOAUFPOS=:VKPKOAUFPOS:,VKPKOAUFART=:VKPKOAUFART:,VKPARTPRF=:VKPARTPRF:,VKPKZFREI=:VKPKZFREI:,VKPFARBGRP=:VKPFARBGRP:,VKPARTUG=utl_raw.cast_to_raw(:VKPART:), VKPFARBEUG=utl_raw.cast_to_raw(:VKPFARBE:), VKPARTOG=utl_raw.cast_to_raw(:VKPART:), VKPFARBEOG=utl_raw.cast_to_raw(:VKPFARBE:),VKPIAEDAT=:VKPIAEDAT:,VKPEMENGEV=:VKPEMENGEV:,VKPEMENGEB=:VKPEMENGEB:,VKPPMENGE=:VKPPMENGE:,VKPVERTEIL=:VKPVERTEIL:,VKPWDECK=:VKPWDECK:,VKPKANR=:VKPKANR:,VKPKAPOS=:VKPKAPOS:,VKPABLGRD=:VKPABLGRD:,VKPGELISTET=:VKPGELISTET:,VKPKONKURENT=:VKPKONKURENT:,VKPKPREIS=:VKPKPREIS:,VKPHOCHRECH=:VKPHOCHRECH:,VKPERFOLG=:VKPERFOLG:,VKPANT=:VKPANT:,VKPANTSAV=:VKPANTSAV:,VKPSIGNED=:VKPSIGNED:,VKPABS=:VKPABS:,VKPABRKZ=:VKPABRKZ:,VKPNOCOUNT=:V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ERSATZ:,VKPBUSIMODE=:VKPBUSIMODE:,VKPEXMANDANT=:VKPEXMANDANT:,VKPRUECKTG=:VKPRUECKTG:,VKPLIEFTERMN=:VKPLIEFTERMN:,VKPVERARBSTA=:VKPVERARBSTA:,VKPCTO=:VKPCTO:,VKPVTRNRK2=:VKPVTRNRK2:,VKPVTRPOSK2=:VKPVTRPOSK2:,VKPAENTIME=:VKPAENTIME:,VKPMAINPROG=:VKPMAINPROG:,VKPSAMPTYP=:VKPSAMPTYP:,VKPUSRSTA=:VKPUSRSTA:,VKPACCVERS=:VKPACCVERS:,VKPLIART=:VKPLIART:,VKPDELTAE=:VKPDELTAE:,VKPLIART2=:VKPLIART2:,VKPDELTAE2=:VKPDELTAE2:,VKPLIART3=:VKPLIART3:,VKPDELTAE3=:VKPDELTAE3:,VKPLINKMARK=:VKPLINKMARK:,VKPKREDNL=:VKPKREDNL:,VKPEINSATZG=:VKPEINSATZG:,VKPVERWEND=:VKPVERWEND:,VKPQSDOK=:VKPQSDOK:,VKPABGABE=:VKPABGABE:,VKPHK=:VKPHK:,VKPGSPH=:VKPGSPH:,VKPMMIN=:VKPMMIN:,VKPFILLER2=:VKPFILLER2:"
                        + " WHERE VKPMANDANT=:VKPMANDANT: AND VKPSA<>'AJ' AND  VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 10:
                    UVKP10(dwData);
                    break;
                case 11:
                    UVKP11(dwData); 
                    break;
                case 12:
                    or1.CommandText = "UPDATE VKPOS A SET VKPZUGET=0,VKPZUGETT1=0,VKPZUGETT2=0,VKPZUGETT3=0,VKPZUGETT4=0,VKPAENDZL=VKPAENDZL+1"
                    + " WHERE  VKPMANDANT=:VKPMANDANT:  AND VKPSA='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    or1.CommandText = "UPDATE VKPOS A SET (VKPZUGET,VKPZUGETT1,VKPZUGETT2,VKPZUGETT3,VKPZUGETT4)= ( SELECT SUM(WBBISTKLG*0.1),SUM(WBBISTKLG*0.1),SUM(WBBISTKLG*0.1),SUM(WBBSGEW*0.1),ROUND(SUM(WBBISTKLG*0.1*WBBSBRT*0.001))"
                        + " FROM WBBST B WHERE VKPMANDANT=WBBMANDANT AND VKPAUFKRS=WBBAUFKRS AND VKPAUFLFD=WBBAUFLFD AND VKPAUFPOS=WBBAUFPOS GROUP BY WBBAUFKRS,WBBAUFLFD,WBBAUFPOS )"
                        + " WHERE  VKPMANDANT=:VKPMANDANT:  AND VKPSA='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS: AND EXISTS ( SELECT 1  FROM WBBST B WHERE VKPMANDANT=WBBMANDANT AND VKPAUFKRS=WBBAUFKRS AND VKPAUFLFD=WBBAUFLFD AND VKPAUFPOS=WBBAUFPOS)";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 13:
                    #region====Command====
                    or1.CommandText = "UPDATE VKPOS SET  VKPPOSWERT=:VKPPOSWERT: ,VKPAENDZL=VKPAENDZL+1"
                       + " WHERE  VKPMANDANT=:VKPMANDANT:  AND VKPSA='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    #endregion
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 14:
                    or1.CommandText = "UPDATE VKPOS SET VKPBSTSTA=:VKPBSTSTA:,VKPAENDZL=VKPAENDZL+1 "
                    + " WHERE VKPSA='  ' AND  VKPMANDANT=:VKPMANDANT: AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 15:
                    or1.CommandText = "UPDATE VKPOS SET VKPBSTSTA=:VKPBSTSTA:,VKPAENDZL=VKPAENDZL+1 "
                    + " WHERE VKPSA='  ' AND  VKPMANDANT=:VKPMANDANT: AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 16:
                    or1.CommandText = "UPDATE VKPOS SET VKPERL=:VKPERL:,VKPERLDAT=:VKPERLDAT:,VKPERLBEN=:VKPERLBEN: ,VKPAENDZL=VKPAENDZL+1"
                    + " WHERE VKPSA='  ' AND  VKPMANDANT=:VKPMANDANT: AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 17:
                    or1.CommandText = "UPDATE VKPOS SET (VKPFREIGE,VKPKOMMISS,VKPFAKT,VKPVERS,VKPEINGET,VKPFREIGET2,VKPKOMMIST2,VKPFAKTT2,VKPFREIGET3,VKPKOMMIST3,VKPFAKTT3,VKPFREIGET4,VKPKOMMIST4,VKPFAKTT4,VKPFREIGET1,VKPKOMMIST1,VKPFAKTT1)"
                        + "=(SELECT SUM(VVTMTR),SUM(VVTMTR),SUM(VVTMTR),SUM(VVTMTR),SUM(VVTMTR),SUM(VVTMTR),SUM(VVTMTR),SUM(VVTMTR),SUM(VVTKG*0.1),SUM(VVTKG*0.1),SUM(VVTKG*0.1),SUM(VVTQM*0.1),SUM(VVTQM*0.1),SUM(VVTQM*0.1),SUM(VVTANZSTK*100),SUM(VVTANZSTK*100),SUM(VVTANZSTK*100)"
                        + " FROM VVTLIEF WHERE VVTMANDANT=VKPMANDANT AND VKPSA='  ' AND VKPAUFKRS=VVTAUFKRS AND VVTAUFLFD=VKPAUFLFD AND VVTAUFPOS=VKPAUFPOS)"
                     + " WHERE VKPSA='  ' AND  VKPMANDANT=:VKPMANDANT: AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:"
                        + " AND  EXISTS (SELECT 1 FROM VVTLIEF WHERE VVTMANDANT=VKPMANDANT AND VKPSA='  ' AND VKPAUFKRS=VVTAUFKRS AND VVTAUFLFD=VKPAUFLFD AND VVTAUFPOS=VKPAUFPOS)";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 18:
                    or1.CommandText = "UPDATE VKPOS SET VKPSACHBE=:VKPSACHBE:,VKPAENDZL=VKPAENDZL+1 "
                    + " WHERE VKPSA='  ' AND  VKPMANDANT=:VKPMANDANT: AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 19:
                    or1.CommandText = "UPDATE VKPOS SET (VKPZUGET,VKPZUGETT4)=(SELECT SUM(GAKG3),SUM(GAKG3) FROM GAAUF WHERE GAMANDANT=VKPMANDANT AND GAAUFKRS=VKPAUFKRS AND GAAUFLFD=VKPAUFLFD AND GAAUFPOS=VKPAUFPOS AND GASA=610 AND VKPSA='  ')"
                        + " WHERE VKPMANDANT=:VKPMANDANT: AND  VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS: AND VKPSA='  '"
                        + " AND EXISTS (SELECT 1 FROM GAAUF WHERE GAMANDANT=VKPMANDANT AND GAAUFKRS=VKPAUFKRS AND GAAUFLFD=VKPAUFLFD AND GAAUFPOS=VKPAUFPOS AND GASA=610 AND VKPSA='  ')";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 20:
                    or1.CommandText = "UPDATE VKPOS SET VKPSA=:VKPSA:,VKPAENDBEN=:VKPAENDBEN:,VKPAENDDAT=:VKPAENDDAT:,VKPAENDZL=VKPAENDZL+1 "
                    + " WHERE VKPSA='  ' AND  VKPMANDANT=:VKPMANDANT: AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD:" + dwData["VKPAUFPOS"].ToString();
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 21:
                    or1.CommandText = "UPDATE VKPOS SET  VKPLIART = :VKPLIART:,VKPLIART2 = :VKPLIART2:,VKPAENDZL=VKPAENDZL+1"
                        + " WHERE VKPMANDANT=:VKPMANDANT: AND  VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS: AND VKPSA='  '";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                default:
                    break;
            }
        }
        public void UVKP10(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
          
            or1.CommandText = "UPDATE VKPOS SET  VKPEXAUFKRS=:VKPEXAUFKRS:, VKPEXAUFLFD=:VKPEXAUFLFD:,VKPEXAUFPOS=:VKPEXAUFPOS:,VKPRESERV=:VKPRESERV: ,VKPRESERVT4=:VKPRESERV:,VKPAENDZL=VKPAENDZL+1"
               + " WHERE  VKPMANDANT=:VKPMANDANT:  AND VKPSA='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
          
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData); 
            Connect2Proxy(or1);
        }
        public void UVKP11(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();

            or1.CommandText = "UPDATE VKPOS SET  VKPEXAUFKRS=:VKPEXAUFKRS:, VKPEXAUFLFD=:VKPEXAUFLFD:,VKPEXAUFPOS=:VKPEXAUFPOS:,VKPEXART=:VKPEXART:,VKPAENDZL=VKPAENDZL+1"
               + " WHERE  VKPMANDANT=:VKPMANDANT:  AND VKPSA='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";

            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UVKP11B(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();

            or1.CommandText = "UPDATE VKPOS SET  VKPEXAUFKRS=:VKPEXAUFKRS:, VKPEXAUFLFD=:VKPEXAUFLFD:,VKPEXAUFPOS=:VKPEXAUFPOS:,VKPAENDZL=VKPAENDZL+1"
               + " WHERE  VKPMANDANT=:VKPMANDANT:  AND VKPSA='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";

            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UVKP11A(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
         
            or1.CommandText = "UPDATE VKPOS SET  VKPEXART=:VKPEXART:,VKPAENDZL=VKPAENDZL+1"
               + " WHERE  VKPMANDANT=:VKPMANDANT:  AND VKPSA='  '  AND VKPEXAUFKRS=:VKPEXAUFKRS: AND VKPEXAUFLFD=:VKPEXAUFLFD: AND VKPEXAUFPOS=:VKPEXAUFPOS:";
        
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UVKP22(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE VKPOS SET "
                        + "VKPRESERV=0, VKPEXAUFKRS='  ',VKPEXAUFLFD='000000',VKPEXAUFPOS='000',  VKPRESERVT4=0 "
               + " WHERE    VKPMANDANT=:VKPMANDANT:  AND VKPSA='  '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UpdateVKPOS(DataRow dwData, int option = 1)
        {
            if (dwData != null)
            {
                dwData["VKPAENDBEN"] = app.User;
                dwData["VKPAENDDAT"] = date;
            }
            if (option == 0)
            {
                switch (app.company)
                {
                    case "YGR":
                    case "SXN":
                    case "TST":
                        option = 8;
                        break;
                    case "JLT":
                        option = 9;
                        break;
                    default:
                        option = 1;
                        break;
                }
            }
            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 1:
                    or1.CommandText = "UPDATE VKPOS SET (VKPZUGET,VKPZUGETT4)=(SELECT SUM(GAKG3),SUM(GAKG3) FROM GAAUF WHERE GAMANDANT=VKPMANDANT AND GAAUFKRS=VKPAUFKRS AND GAAUFLFD=VKPAUFLFD AND GAAUFPOS=VKPAUFPOS AND GASA=610 AND VKPSA='  ')"
                        + " WHERE VKPMANDANT=:VKPMANDANT: AND  VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS: AND VKPSA='  '"
                        + " AND EXISTS (SELECT 1 FROM GAAUF WHERE GAMANDANT=VKPMANDANT AND GAAUFKRS=VKPAUFKRS AND GAAUFLFD=VKPAUFLFD AND GAAUFPOS=VKPAUFPOS AND GASA=610 AND VKPSA='  ')";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                default:
                    break;
            }
        }
        public void UENDVKP(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE VKPOS SET "
                        + "VKPERL=:VKPERL:, VKPEZEIT=:VKPEZEIT: ,VKPERLDAT=:VKPERLDAT:,VKPERLBEN=:VKPERLBEN:"
               + " WHERE    VKPMANDANT=:VKPMANDANT:  AND VKPSA='  ' AND VKPERL=' '  AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        
        public void DeleteVKPOS(DataRow dwData, int option = 1)
        {
            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 0:
                    or1.CommandText = "DELETE  VKPOS "
               + " WHERE  VKPMANDANT=:VKPMANDANT: AND (VKPSA='  ' OR VKPSA='IN') AND VKPAUFKRS=:VKPAUFKRS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    break;
                case 1:
                    or1.CommandText = "DELETE  VKPOS "
                  + " WHERE  VKPMANDANT=:VKPMANDANT: AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPAUFPOS=:VKPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    break;
                case 2: 
                    MUX.UpdateABAUFM(null, 8);
                    or1.CommandText = "DELETE VKPOS WHERE VKPAUFPOS = '999'"; 
                    VABK.UABK02(null);
                    VGD.DeleteGAAUF(null, 2);
                    VABAX.DeleteICC_ABAX(null, 7);
                    break;
                case 3:
                    or1.CommandText = "DELETE  VKPOS "
                    + " WHERE  VKPMANDANT=:VKPMANDANT: AND VKPAUFKRS=:VKPAUFKRS: AND VKPAUFLFD=:VKPAUFLFD: AND VKPMENGE1=0 ";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    break;

            }
            Connect2Proxy(or1);
        }
    }
}
